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 on SobiPro entry pages only?

Displaying MetaMod on SobiPro entry pages only?

Hello,

Would someone be kind enough to share the recipe to show the MetaMod module on SobiPro entry pages only?

Currently it shows on all SobiPro pages and I just need it to show on the entry page itself smile

Many thanks!

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

Re: Displaying MetaMod on SobiPro entry pages only?

if ($option == "com_sobipro") try {
  $ob = SPFactory::object( SPRequest::sid() );
  $type = $ob->oType;
  /* now test for different types. You can test for "entry",
    "section" or "category". */
  if ($type == "entry") return XXX;
}
catch ( SPException $x ) {}
// replace XXX with the module id of the module that you want to appear
// on SobiPro entry pages ONLY.


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

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10093
Newest User:
lamanaudio
Members Online:
0
Guests Online:
229

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