Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Module linked via URL
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?
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
- Index
- » MetaMod
- » MetaMod General Support
- » Module linked via URL
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:
- 154
- 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