Discussion:
[TYPO3-english] Language menu with special.normalWhenNoLanguage = 0 not work
Matias Coca
2010-01-06 12:25:18 UTC
Permalink
Hello, I want to disable link to language page when the page is not
translate, in localconf.php is
$TYPO3_CONF_VARS['FE']['hidePagesIfNotTranslatedByDefault'] = '1';
The link is generated anyway, this is my TypoScript, I don't know what
is wrong...


lib.navigation.language = HMENU
lib.navigation.language {
protectLvar = 1
special = language
special.value = 1,0
special.normalWhenNoLanguage = 0
wrap = <ul id="language-menu"> | </ul>
1 = TMENU
1 {
# Normal link to language that exists:
NO = 1
NO.allWrap = <li id="language-menu-en">|</li> |*| <li
id="language-menu-de">|&nbsp;&#124;&nbsp;</li>
NO.stdWrap.override = English |*| Deutsch
ACT < .NO
ACT.doNotLinkIt = 1
}
}

In config of language I have this

# German (default)
config {
sys_language_uid = 0
sys_language_mode = content_fallback
sys_language_overlay = hideNonTranslated
language = de
locale_all = de_DE.utf8
htmlTag_langKey = de
}

# English - GB
[globalVar = GP:L = 1]
config {
sys_language_uid = 1
language = en
locale_all = en_GB.utf8
htmlTag_langKey = en
}
[end]


Thanks in advance!
--
Saludos.
Matias Coca.
Steffen Kamper
2010-01-06 13:30:52 UTC
Permalink
Hi,

the setting is dependend from the l18n_cfg value of the page record.
//True if the page should be hidden
return $l18n_cfg_fieldValue&2 ? FALSE : TRUE;

vg Steffen
Matias Coca
2010-01-06 19:02:16 UTC
Permalink
Post by Steffen Kamper
Hi,
the setting is dependend from the l18n_cfg value of the page record.
//True if the page should be hidden
return $l18n_cfg_fieldValue&2 ? FALSE : TRUE;
vg Steffen
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Thanks, I don't understand your solution but I can solve the problem
configure USERDER1, then my TS is:

lib.navigation.language = HMENU
lib.navigation.language {
protectLvar = 1
special = language
special.value = 1,0
special.normalWhenNoLanguage = 0
wrap = <ul id="language-menu"> | </ul>
1 = TMENU
1 {
# Normal link to language that exists:
NO = 1
NO.allWrap = <li id="language-menu-en">|</li> |*| <li
id="language-menu-de">|&nbsp;&#124;&nbsp;</li>
NO.stdWrap.override = English |*| Deutsch
ACT < .NO
ACT.doNotLinkIt = 1
# Language that is NOT available:
USERDEF1 < .NO
USERDEF1.doNotLinkIt = 1
}
}
--
Saludos.
Matias Coca.
Loading...