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.

 

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

mknofler
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

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

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:
10734
Newest User:
gudad2
Members Online:
3
Guests Online:
202


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked