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.

 

Hide or show individual menu item based on geoip location

Hide or show individual menu item based on geoip location

Have installed Metamod the geoip.dat from MetaMind.  Trying to understand if its possible to hide or show an individual menu item based on the geoip.  Is this possible and how is it done?

For example I have a main menu item 'SHOP' (url link) that takes to user to my on-line store. I only want this menu item to show in countries that the shop servers.

Thanks for your help.

Mark

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

Re: Hide or show individual menu item based on geoip location

Hi hiretech,

Because MetaMod deals directly with modules, it does not typically allow you to hide/show particular menu items.
However, if the menu you want to alter is being displayed by a module (as opposed to something built in to the template), then there is a way that MetaMod can help.

At https://www.metamodpro.com/software/elastimenu you can find ElastiMenu which is a drop-in alternative to the standard Joomla menu module. It has an important enhancement: it can allow you to specify certain menu items that you don't want to display.

Therefore, you can create 2 ElastiMenus: one that has all items showing, and one that will hide a certain menu item. Then, use MetaMod to display either one or the other based on GeoIP.

Does your site use standard Joomla menu modules?
If not, you can achieve the same result using Chameleon, which is able to hide Menu Items even in menus not displayed in Menu Modules (e.g. by the template).

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

Board Info

Board Stats:
 
Total Topics:
1683
Total Polls:
6
Total Posts:
5940
Posts this week:
11
User Info:
 
Total Users:
5142
Newest User:
zaki98040
Members Online:
0
Guests Online:
183

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