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.

 

disable auto publish for a specific module

disable auto publish for a specific module

Hi
im using this rule

Code:

if ( $option == 'com_virtuemart' and $view == 'category'  and $jinput->get('virtuemart_category_id') == '1'

) return "100,101";

is it possible to return modules 100 or 101 only if they are published ? if so, can this be done for this specific module so that other keep using the auto-publish configuration ?

Thanks

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

Re: disable auto publish for a specific module

Hi,

If you set the "Auto-enable included modules" to "None" then they will only be included if they are returned in the PHP code AND are published.

This is set on a per-MetaMod basis. So you can have it set this way in one MetaMod, but set up another MetaMod that has a different setting (e.g. "all included modules") which will display them whether they are published or not.

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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: disable auto publish for a specific module

easy. thanks

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10727
Newest User:
solza2
Members Online:
0
Guests Online:
153

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