Add language-dependent title/description

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Add language-dependent title/description

Post 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.
Peciura

Re: Add language-dependent title/description

Post 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
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Add language-dependent title/description

Post by saltydog »

Thank you Peciura! Cool and easy...
alby

Re: Add language-dependent title/description

Post 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
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Add language-dependent title/description

Post 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.
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Re: Add language-dependent title/description

Post 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!
The universe of information technology is constantly growing and contains only emerging products built on successive patches
Locked

Return to “[locked] CMSMS MLE fork”