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.

 

Module linked via URL

Module linked via URL

Hi
I have a banner on my site which when clicked goes to a page showing categories of a sobi2 page
Now I need to show /appear one module only on this page and not on any other pages
How can I do this please guide and help soon
Thanks a lot
The site is:
http://74.53.239.51/~myland/
Just below the slideshow that banner is clickable and hyperlinked to a page on sobi2 component.
I just need to make sure that one module appears only on this page?

toadityakumar
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Module linked via URL

Hi toadityakumar,

I clicked on the banner and found myself on this page:

http://74.53.239.51/~myland/index.php?o … ;Itemid=43

Now, you could identify this page by URL, but then that would change when/if you turn on SEF URLs, so it's better to identify it by the URL components. In this case it's also important to identify it by what's not in the URL as well as what is in the URL, as some of the other pages have similar URLs with just a few things added.

Ok, here goes. I think this will work:

if ($option == "com_sobi2"
  and JRequest::getInt("catid") == 3
  and JRequest::getVar("sobi2Task") == ""
  and JRequest::getVar("sobi2Id") == ""
) return XXX;
// replace XXX with the module ID to include on that page.


For the other advert, replace the 3 in the recipe above with 4 instead.

Lastly, don't forget to read the Quick Start guide:
http://www.metamodpro.com/metamod/quick-start

Best regards,
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
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4401
Newest User:
jason59312
Members Online:
0
Guests Online:
177

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