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"}