View Single Post
  #7  
Old 10-22-2004, 10:32 PM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default

Hi Shan,

Code works fine.

As a use different languages i have work around the fact that the pageid in the pages table is auto_increment.

Found a solution:
Code:
{* $Id: pages_menu.tpl,v 1.4 2004/06/24 09:53:29 max Exp $ *} {if $lng.lbl_select_language eq "Selecteer taal"} {section name=pg loop=$pages_menu} {if $pages_menu[pg].pageid ne "1"} {$pages_menu[pg].title} {/if} {/section} {elseif $lng.lbl_select_language eq "Select language"} {section name=pg loop=$pages_menu} {if $pages_menu[pg].pageid ne "5"} {$pages_menu[pg].title} {/if} {/section} {/if}

I use the $lng.lbl_select as a criterium. I'm not happy with that at all. I would prefer to use language-values like US and NL.

Question: is there a $variable language that could be called ?
This way i could use {if $language eq "US"}
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote