Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Displaying MetaMod when there are...
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
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
- Index
- » MetaMod
- » MetaMod General Support
- » Displaying MetaMod when there are...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7645
- Newest User:
- foocd90
- Members Online:
- 2
- Guests Online:
- 160
- Online:
- melton7386, foocd90
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked