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.

 

Hiding a module if the module has specific text?

Hiding a module if the module has specific text?

Problem:

I have a php weather script in a module that outputs a dynamic weather warning.
Is it possible to hide that module if there is no warning?
If there is no warning the script says: Geen speciale alertheid vereist.

Site: http://www.hetweerinruinen.nl/

Jacco

dutchy
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Hiding a module if the module has specific text?

Hi, that's a good question. Essentially MetaMod has to have some way of performing the same check that the weather warning module does, before the other module gets rendered. There's no easy way to do this. In the past I've solved problems like this by copying the core code from the target module into the MetaMod and using it to generate the decision. This can be complex to achieve.

Sorry, no easy way to do it.

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

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5912
Total Posts Today:
4
User Info:
 
Total Users:
11509
Newest User:
michael2154
Members Online:
0
Guests Online:
101

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