Page 1 of 1

Add language-dependent title/description

Posted: Wed Jul 22, 2009 8:01 am
by saltydog
Is there a way to set the page Title and Description in the template , depending on the language the page is showing?

I have the same set of templates for my multilanguage site, and I want to change head metadata consequntly with the language.

Re: Add language-dependent title/description

Posted: Wed Jul 22, 2009 10:51 am
by Peciura
Create some GCB like "head-en_US" "head-fr_FR" and place {global_content name="head-$lang"} between or place to "Site Admin » Global Settings  » Global Metadata:".
Similar thing you can do with title

Re: Add language-dependent title/description

Posted: Wed Jul 22, 2009 12:58 pm
by saltydog
Thank you Peciura! Cool and easy...

Re: Add language-dependent title/description

Posted: Wed Jul 22, 2009 3:41 pm
by alby
In 1.6 GLobal content are multilang
put {global_content name="head"} in template and in Global Content you have "head" item for any languages


My advice, however, is:
- title is already multilang (in Main tab)
- metadata is already multilang (in Option tab)
- use content block for user friendly meta tag:
 
 

Alby

Re: Add language-dependent title/description

Posted: Wed Jul 22, 2009 3:49 pm
by saltydog
Thank you alby. Your advise is perfect if you need a title and a description for each page (that is what I will do when I find some spare time!). For the moment, the global metadata trick is enough.

Re: Add language-dependent title/description

Posted: Wed Jul 22, 2009 4:02 pm
by seensite
Wow!
This is Very usefull! It takes much time to explain my users why it is important to fill description and keywords fields for search engines, how to do that, where, ... With this it is just 10000 times easier for them! Many thanks!