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.

 

Display modules based on referring url?

Display modules based on referring url?

Does the metamod or chameleon allow me to display different modules or templates based on the referred url?

My application is for a PPC campaign where I'd like to show a different phone number and contact form to those visitors arriving from my PPC ads.

Thanks!

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

Re: Display modules based on referring url?

Hi ismalley,

Yes, both products will allow you to do this: Chameleon for templating, menu item alterations, titles, CSS, JS, home page selection etc, and MetaMod for modules.

In Chameleon you can detect the referred using a form control (referrer startswith/contains/endswith/equals/regex matches whatever you enter). In MetaMod you use a PHP snippet:

if ($core_genius->check("referrer contains otherdomain.com/referrer/page.html")) return XXX;
if ($core_genius->check("referrer contains otherdomain2.com/page.html")) return YYY;
// replace XXX, YYY with module id of the module to include for that referrer

There are other keywords you can use too: contains/startswith/endswith/=

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10778
Newest User:
negina4qx
Members Online:
0
Guests Online:
172

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