Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » I need see two differents modules...
I need see two differents modules depends the language selection of my
I need see two differents modules depends the language selection of my
I need see two differents modules depends the language selection of my web...
If i select spanish i need one module and i select english language other.
I write this but not work:
$vm = JomGenius("virtuemart");
if ($language_code=="es") {if ( $vm->check( "pagetype = frontpage" )) return 337;}
if ($language_code=="en") {if ( $vm->check( "pagetype = frontpage" )) return 338;}
How can put this code?
Thanks
Re: I need see two differents modules depends the language selection of my
Hi,
the code looks ok, I think, though it depends on whether the VM page is definitely a VM "front page". You should be able to put that into a MetaMod that is assigned to "all" pages (or at least to the menu item that the VM front page is on).
Also don't forget:
- read the Quick Start guide: http://www.metamodpro.com/metamod/quick-start
- metamod must be published, set to a valid module position and appropriate menu items
- target modules (337, 338) must be set to "virtual" module position or unpublished so that they do not show up until MetaMod includes them
Cheers,
Stephen
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » I need see two differents modules...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7667
- Newest User:
- humble2601
- Members Online:
- 0
- Guests Online:
- 222
- 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