Using different Title fields for different languages
Posted: Mon May 18, 2009 12:34 pm
Hi all
I'm quite new to CMSMS so please bare with me...i would be grateful for any help on this..
I am setting up a multilingual site with English as the main language and swedish, spanish etc. as secondary languages.
I wish to use the Description (title attribute) for the Titles on English pages, while using the main Title for all pages in other languages, how can this be achieved ?
e.g. If english then display description tag else display Main title
My template code looks like this:
{process_pagedata}
{title}
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{global_content name='lang-stylesheet'}
{literal}
I'm quite new to CMSMS so please bare with me...i would be grateful for any help on this..
I am setting up a multilingual site with English as the main language and swedish, spanish etc. as secondary languages.
I wish to use the Description (title attribute) for the Titles on English pages, while using the main Title for all pages in other languages, how can this be achieved ?
e.g. If english then display description tag else display Main title
My template code looks like this:
{process_pagedata}
{title}
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{global_content name='lang-stylesheet'}
{literal}