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.

 

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?

Example:

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.

Regards
Blumenman

Blumenman
Beginner Modder
ranks
useravatar
Offline
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

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:
1686
Total Polls:
6
Total Posts:
5940
Total Posts Today:
1
User Info:
 
Total Users:
5198
Newest User:
Paramountdental
Members Online:
0
Guests Online:
168

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