Monday 12 June 2006 2:36:07 am - 3 replies
Stéphane Bullier
Tuesday 13 June 2006 12:44:24 am
Hello,
You can use for example :
{if eq( $site.http_equiv.Content-language, fr-FR)} <a href="{concat('http://www.exemple.com/en/', $DesignKeys:used.url_alias)}">English version</a> {else} <a href="{concat('http://www.exemple.com/fr/', $DesignKeys:used.url_alias)}">Version française</a> {/if}
Stéphane
J-A Eberhard
Tuesday 13 June 2006 2:06:15 am
You can also use a loop and a direct link to the same page in another language
<ul> {def $locales=fetch( 'content', 'translation_list' )} {foreach $locales as $locale} <li> <a href={concat("../",$locale.country_code|downcase(),"/",$module_result.content_info.url_alias)|ezurl} >{$locale.language_name}</a> </li> {/if} {/foreach} {undef} </ul>
Open Source Solution Provider Open-Net Ltd Switzerland http://www.open-net.ch
Osichr Hayez
Tuesday 13 June 2006 2:31:26 am
Thanks for your replies! I have now got it working using the siteaccess method.
You must be logged in to post messages in this topic!