Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Publish a Menu
Publish a Menu
Re: Publish a Menu
Sorry, there isn't a way to publish a menu item, only to unpublish.
So, what you can do is set up all the menu items inside your menu and start with them all published. Then you make a rule that unpublishes all of the ones you don't want, EXCEPT when your condition is met.
So if you only want a menu item published on the front page of the site, set up the menu item as published. Then, make a rule that detects the front page of the site (e.g. the "home" menu item). Now, instead of using the Succeed Action to unpublish the menu item, use the Fail Action to unpublish the menu item.
In this way, if the guest is on the front page then the Succeed Action runs, but nothing gets unpublished, and the user will see the menu item.
If they are NOT on the front page, then the FAIL action is run, and this will unpublish the menu item.
Hope that helps,
Best regards,
Stephen
Re: Publish a Menu
Ok, that's a little different. If it's a whole menu, and if that menu is being displayed as a module, then all you have to do is to control the display of that module. Technically this is different to switching individual menu items on and off – it's just changing the *display* of the links rather than disabling the menu items which can have other effects.
To use MetaMod to control the display of another module (in this case a menu module) by date, see the examples page:
http://www.metamodpro.com/metamod/recip … time-rules
If you want the date range to be in a particular time period, use the JomGenius rules (tab on that page). For basic "after this date" use the "Constants" rules (2nd tab on that page).
e.g.
if ( MM_DATE >= 20130912 ) return XXX;
// replace XXX with module id of menu module to display from that date
Hope that helps,
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Publish a Menu
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 0
- Guests Online:
- 127
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked