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 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.

Edited By: Henri
23-Mar-12 20:06:34

Henri
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

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  />";

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

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Posts this week:
1
User Info:
 
Total Users:
10137
Newest User:
lexispoker1
Members Online:
1
Guests Online:
227

Online: 
liaskas

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked