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.

 

Hide similar tags module if no match

Hide similar tags module if no match

Hello,

How can I hide a "similar tag" module if there is no matching between articles ?
I do not want to display an empty module, but I don't know how to check if one article has no matching tags.

You can see an example of empty mod here:  http://lamothe.a51.fr/livrets-technique … dification (module called "sujets liés")

Thanks for your help.
Philippe

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

Re: Hide similar tags module if no match

Hi Philippe,

you hit the nail on the head when you wrote "I don't know how to check if one article has no matching tags". For MetaMod to be able to hide the module in this case, it needs to know how to check if an article has no matching tags.

Sorry, MetaMod doesn't know how to do that. You'd have to find the logic used in the "similar tag" module, and craft that into some PHP code that MetaMod can use. What's the exact module that you are using for the similar tag thing?

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

Re: Hide similar tags module if no match

Hello Stephen,

Sorry for this long silence, I was out of office for a while.
I'm using the standard "similar tags" module in Joomla 3.2
And well, I don't konw neither how I could display a module if the condition where display module if tag ="example"

If you have any clue to do that job, it could be great
Thanks for your help
Philippe

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

Board Info

Board Stats:
 
Total Topics:
1696
Total Polls:
6
Total Posts:
5941
Posts this week:
8
User Info:
 
Total Users:
5378
Newest User:
gary9131
Members Online:
0
Guests Online:
176

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