Thursday 11 August 2005 7:14:17 am
Hi, I made a custom menu to have a drop down list :
<div class="isuga">
<form action="" method="get">
<select name="l_isuga" id="l_isuga" onchange="window.location=this.form.l_isuga.options[this.form.l_isuga.selectedIndex].value;">
<option value="" selected="selected">----------------------------------------------</option>
{section name=isuga loop=fetch( content, list, hash( parent_node_id, 102 ) )}
<option value="{$:item.url}">{$:item.name}</option>
{/section}
</select>
</form>
</div>
It's ok but as I have a multilanguage site, this way, it can't be used only for the default language. What must I do with the value {$:item.url} to print a good URL (/fr/my_url or /en/my_url) ? The name {$:item.name} in the dropdown list is translated but the URL is wrong. Yhanks. Laurent
|