[TYPO3] Localized items don't show up
Dmitry Dulepov
typo3 at accio.lv
Fri Sep 15 14:24:24 CEST 2006
Hi!
Lars Kappert wrote:
> I added these lines to the root template setup:
> # l10n:
> page.config {
> linkVars = L
> sys_language_uid = 1
> language = nl
> locale_all = nl_NL
> htmlTag_langKey = nl
> }
>
> Now, if I do something like this:
> subparts.content = CONTENT
> subparts.content.table = tt_content
> subparts.content.select {
> pidInList = this
> orderBy = sorting
> languageField = sys_language_uid
> }
Correct. This is approximately the same as what styles.content.get does.
> ....I get only the default (localized) content items. If I remove the
> Languagefield line, the template shows ALL content items for that page
> (the default, the NL and the EN items).
So behavior is correct when you set languageField. Or you expect
different result?
> If I have page.config.sys_language_uid set in the root template, then
> that variable is available in the template of a subpage as well, right?
> (I don't clear constants or setup in any template.)
Yes.
--
Dmitry Dulepov
http://typo3bloke.net/
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
More information about the TYPO3-english
mailing list