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.

 

Joomfish language

Joomfish language

hi
I create a rule called English which manage a template and another rule called Portuguese which manage another template.
The Portuguese template only works when I turn off the English rule.

Why is this happening?

the english rule:
if ($language_code == "en")return true;

the portugues rule
if ($language_code == "pt")return true;

tatianajtcv
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Joomfish language

Hi tatianajtcv,

check your SUCCEED rule and FAIL rule. Look at the checkboxes marked "Stop processing" and "Process next rule in chain". I think you may have "stop processing" marked if the 1st rule fails. Because of that, even if the first rule fails, it's never getting to the second rule. So change it to "process next rule in chain" instead.

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

Re: Joomfish language

Thank you Stephen,I solved the problem thanks to you

tatianajtcv
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1674
Total Polls:
6
Total Posts:
5917
Total Posts Today:
5
User Info:
 
Total Users:
11538
Newest User:
michael2155
Members Online:
2
Guests Online:
232


Forum Legend:

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