Share » Forums » Setup & design » language links in multilanguage...

language links in multilanguage websites with cache ON

language links in multilanguage websites with cache ON

Monday 14 August 2006 3:11:52 am - 4 replies

Modified on Monday 14 August 2006 3:13:05 am by Yves Lescribe

Author Message

Kristof Coomans

Monday 14 August 2006 6:58:47 am

Hello Yves

Take a look at this topic: http://ez.no/community/forum/setup_design/page_refresh_causes_custom_meta_tags_etc_to_disappear
It answers your question about the issues with the $node variable in the pagelayout when view caching is turned on.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Yves Deschrijvere

Monday 14 August 2006 7:35:01 am

Hi Kristof,

Thank you very much, this works perfectly ! Great ! :-)

Yves

No limits, except those of your mind ...

Robin Muilwijk

Friday 15 December 2006 1:43:34 am

Hi,

I'm new to eZpublish and trying to make a multilanguage site. Where would I put that code? I'm trying to make language links to access another language, just as on ez.no, on the top right.

Thanks, Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

André R.

Friday 15 December 2006 8:29:34 am

This thread is not really about multilingual sites, but you can follow links and discussion on these other threads:

http://ez.no/community/forum/setup_design/multilingual_setup
http://ez.no/community/forum/install_configuration/multi_lingual_content/re_multi_lingual_content__4

Some code to play with (given that you have english and france versions of your site):


<li{if "en"|eq($access_type.name)} class="current_siteaccess"{/if}>
 {if is_set($DesignKeys:used.url_alias)}
  <a href={concat( "http://example.com/en/", $DesignKeys:used.url_alias)} title="See this page in english">english</a>
{else}
  <a href={concat( "http://example.com/en/", $uri_string)} title="See this page in english">english</a>
{/if}
 </li>

<li{if "fr"|eq($access_type.name)} class="current_siteaccess"{/if}>
 {if is_set($DesignKeys:used.url_alias)}
  <a href={concat( "http://example.com/fr/", $DesignKeys:used.url_alias)} title="See this page in french">french</a>
{else}
  <a href={concat( "http://example.com/fr/", $uri_string)} title="See this page in french">french</a>
{/if}
 </li>

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu