Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] URL
[solved] URL
[solved] URL
Hi,
Is it possible to display a module depending on URL content.
Example
URL www.test.com/index.php/countries/new-zealand
I want to display a module when new-zealand is showing in the URL or an other Module if Australia is part of the URl etc etc
Many thanks in advance and looking forward to your reply.
Re: [solved] URL
Hi, yes, this is easy to do with MetaMod. First of all read through the Quick Start guide, then use the PHP below, modified as required:
if ($core_genius->check("url contains new-zealand")) return XXX;
if ($core_genius->check("url contains australia")) return YYY;
// replace XXX and YYY with the module ids of the modules to use in each case.
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] URL
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7627
- Newest User:
- rudys68879
- Members Online:
- 0
- Guests Online:
- 152
- 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