NAVIGATION
This is an old revision of the document!
Forum: http://forum.phpwcms.org/viewtopic.php?p=112333#p112333
Author: Jensensen
You probably noticed that –> config
$phpwcms['default_lang'] = 'ABC'; //default language
is responsible for the xml:lang source code of the page, like for example:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ABC" lang="ABC">
But what happens when you have a multilingual site [SEO] running with many different site structure levels for each language (so called 'trees')?
The visitor and any –> search engine will get –> DEFAULT =⇒ 'ABC' –> for EVERY PAGE in –> each tree - EVEN for those pages which content ACTUAL was written for example in ES, IT, SE, DK, UK. FR, EN…
You'll succeed by –> CUSTOM templates that will override –> CONF
Just ADD [this conf-var!]:
$phpwcms['DOCTYPE_LANG'] = "whatever_lang";
to
[a custom template : for me THIS was new because THERE never was DOCTYPE_LANG in]
/template/inc_settings/template_default/MYcustom_settings.php
Google code: http://code.google.com/p/phpwcms/issues/detail?id=147
or frontend_init something