Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Displaying modules dependent on value...
Displaying modules dependent on value of fields (Sobipro and others)
Displaying modules dependent on value of fields (Sobipro and others)
Hello Stephen and all
On returning to the work and joomla 2.5 is crossed there...
As regards components as Sobipro or EventList, for example, is it possible to show modules depending on keywords, tags, descriptions of the entries of these components?
It seems that it is possible for articles of joomla! According to this comment, if I am not mistaken:
http://www.metamodpro.com/forums/topic?id=50
Thanks in advance
Henri
EDIT: For precision, it is a question of showing modules " in relation " with entries shown by these components, in particular for results of search.
23-Mar-12 20:06:34
Re: Displaying modules dependent on value of fields (Sobipro and others)
Hi Henri,
I think it's likely that you would be able to use MetaMod to take this information from SobiPro or Eventlist - however, it does depend a bit on how they add keywords to the page and whether this is available to MetaMod.
Note that this will only work when you are actually viewing one of the pages in question - it won't work when viewing a list of items returned from a search (if that's what you were hoping for - sorry, almost impossible).
As a first try at this, could you please put the following code into a MetaMod, assign it to ALL pages, and then see what gets output when you visit some Sobipro pages that have particular keywords and metadescription? If the right information is output, then you can probably use the recipe mentioned on the page you linked to above.
Cheers,
Stephen
code:
$document =& JFactory::getDocument();
$kw = $document->getMetaData('keywords');
$desc = $document->getMetaData('description');
echo "<br />keywords: $keywords <br />";
echo "description: $description <br />";
- Index
- » MetaMod
- » MetaMod General Support
- » Displaying modules dependent on value...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7638
- Newest User:
- moner86658
- Members Online:
- 0
- Guests Online:
- 127
- 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