Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Publish a Menu

Publish a Menu

How to publish a Menu. I know how to unpublish a Menu but how to make a rule to publish?

zimmes
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Publish a Menu

OK, My problem is that I want a MENU and it's items to be pulished in a certain date. Next week 12 of sep for example.

zimmes
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5174
Newest User:
frashaomran
Members Online:
0
Guests Online:
116

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