Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Show module based on location
Show module based on location
Show module based on location
Hi there. Thinking of purchasing Chameleon but wanted to know whether it is possible to use it to show/hide a module based on the users geo-location.
Basically what I want to do is for a particular module to show up on the home page for users accessing the site from certain countries. Few other things I want to do as well, but the documentation seems to answer those questions.
Thanks!
Re: Show module based on location
Hi Jaymalo,
The product for this is MetaMod, not Chameleon, as Chameleon does not deal with modules.
And yes, MetaMod can switch modules based on GeoIP location.
Brief how-to:
1 - download and install the GeoIP Lite database from MaxMind as per documentation
2 - create your target module, the one you want to appear for certain countries. Take a note of its module id number
3 - change the module position of the target module to something like "frontpage-conditional" just so it doesn't show up on anything for now.
4 - create a MetaMod in the module position that you actually want the target module to appear in. Make sure it's published.
5 - in the MetaMod GeoIP options, indicate that you want to use the GeoIP Country database
6 - in the MetaMod enter the 2-letter country code (or a comma-separated list of 2-letter country codes) of the countries you want the target module to appear for, in the "only these countries" box.
7 - enter the module id of the target module into the "quick module id or position include" box.
8 - save and test.
Cheers,
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Show module based on location
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 0
- Guests Online:
- 118
- 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