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.

 

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

kitesurfer
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

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.

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

Re: [solved] URL

Many thanks for your quick reply that works like a treat! :-)

kitesurfer
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] URL

Great smile

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
Total Posts Today:
1
User Info:
 
Total Users:
10075
Newest User:
rsker57
Members Online:
0
Guests Online:
247

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