Guest
02 Sep 2014 17:47

Hi, I need to create a menu item that redirects to index.php?option=com_emerald&view=empayment Ideally it should allow me to chose one plan to pay or show all.

I need to do this because I need to be able to assign modules to that page, based on the plan selected.

For example: If the user goes to index.php?option=com_emerald&view=empayment$sid=1, it should show certain banner that I can set up via de module manager and assign it to that menu item.

Also if I have a couple menus like these:

Pay for your subscriptions (shown only for standard registered users, based on ACL)

Plan 1 (menu alias: plan1) Plan 2 (menu alias: plan2)

Pay for your subscriptions (show only for premium registered users, based on ACL)

Plan 1 (menu alias: plan1-premium) Plan 2 (menu alias: plan2-premium)

I would like to show a module only for menu item plan1 which would be index.php?option=com_emerald&view=empayment$sid=1 and I would also like to show a different module for menu item plan1-premium, which would also take the user to index.php?option=com_emerald&view=empayment$sid=1

So I'm thinking this can be done with Joomla functionality. What I'd need Emerald to do is to let me create a menu item directly to the payment page in order to do this.

Thank you!

Last Modified: 05 Sep 2014


maleli VIP
Total posts: 87
02 Sep 2014 21:58

Sorry, I posted this as a guest.

Just wanted to add that I'd need to be able to assign different templates to menu items that link to emerald payments.

Thanks!


Sergey
Total posts: 13,748
03 Sep 2014 07:15

There are 2 ways to create what you want.

  1. You create custom module which will check what plan is shown and act acordingly.
  2. I add parameter for every plan "Menu element ID". And you can map plans. Every plan may have different Itemid but you will have to create hidden menu, add as many links there as you have plans and all of them to Emerald emlist view.

To me 1st method is the best.


maleli VIP
Total posts: 87
03 Sep 2014 16:26

Thank you, I tried the second solution, because I also need to be able to assign different templates, and I can do that only with a menu item. But I can't create a menu item to this page index.php?option=com_emerald&view=empayment

That's where I need your help, because I have other options available when creating menu items for emerald, but there's no link to the payment page.

Thanks!


pepperstreet VIP
Total posts: 3,837
03 Sep 2014 18:02

Guest I need to be able to assign modules to that page, based on the plan selected.

For example: If the user goes to index.php?option=com_emerald&view=empayment$sid=1, it should show certain banner that I can set up via de module manager and assign it to that menu item.

AMM

You may have a look at NoNumber's Advanced Module Manager. It allows to assign modules on almost any context and rule, incl. URL parts etc. Even parameters can be passed. (check out PRO version features)


Edit

If URL sniffing is all you need, I remember two lightweight alternatives from Hyde-Design. See modules HD-AnyCode J!25-30, HD-ModURL J!25 (might work in J!3, or needs minor update?). Both have options to check the current URL for specific path/elements.


Sergey
Total posts: 13,748
03 Sep 2014 23:56

pepperstreet

Guest I need to be able to assign modules to that page, based on the plan selected.

For example: If the user goes to index.php?option=com_emerald&view=empayment$sid=1, it should show certain banner that I can set up via de module manager and assign it to that menu item.

You may have a look at NoNumber's Advanced Module Manager. It allows to assign modules on almost any context and rule, incl. URL parts etc. Even parameters can be passed. (check out PRO version features)

Ерфе would be a perfect solution!

Powered by Cobalt