Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.



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


Displaying MetaMod when there are specific keywords in an article

Displaying MetaMod when there are specific keywords in an article

Hi there;)

First Question: I would like to know if there is a possibility to display the metamod only when there are certain keywords mentioned in an article and of course how to do it?

Second question: Lets say I have for instance a website directory of different companies. And every time I publish an article it shall show the module with the related vendor with metamod. I mean I think that it could be solved with metamod, but I am not an SQL-genius. I managed to add one article to metamod, but what about the next article etc.... How can I do it, that when you have 10 articles, then show the "related vendor module". How can I add more articles to the query. What is the syntax?


if (

$option == 'com_content'
and $view == 'article'
and $id == '1700'
and JRequest::getVar('catid') == '904'
and $Itemid == '123'
and JRequest::getVar('lang') == 'en'
) return 105; /* replace XXX with the module ID or position to display */

Or does anyone maybe know a better solution? Because everytime I publish a new article I would have to add the new article id to the query.

I apreciate any help or information.

Thanking you in advance.


Beginner Modder
1 Posts
Administrator has disabled public posting

Re: Displaying MetaMod when there are specific keywords in an article

Hi Blumenman,

(1) yes, you can base module selection around words found in the main component/content of the page (e.g. an article). Unfortunately I had forgotten to transfer this from the old web site, but it's up now:

http://www.metamodpro.com/support/recip … escription

(2) You could actually use the recipe above for doing the "related vendor" thing. I'd do it with the Meta Keywords detection -- in the MetaMod set up a list of vendor names and their corresponding module ids, then simply include the relevant vendor name into the Keywords field of any article, and the vendor module will appear.

Do you think that would work for you?

Hope that helps,

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

3330 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
Total Topics:
Total Polls:
Total Posts:
Total Posts Today:
User Info:
Total Users:
Newest User:
Members Online:
Guests Online:

There are no members online

Forum Legend:

 New Sticky