[TYPO3] Single page localization

media.res | Alex Widschwendter a.widschwendter at mediares.at
Tue Feb 5 17:24:25 CET 2008


Xavier Perseguers wrote:
> Hi Alex,
> 
>> if i understand you correct, you don't have an L param at hand to
>> change
>> the language.
>>
>> so you can use the pidinrootline condition to set the correct
>> langkey:
>>
>> [PIDinRootline = pages-uid, pages-uid, ...]
>> config.htmlTag_langKey = de-DE
>> [PIDinRootline = pages-uid, pages-uid, ...]
>> config.htmlTag_langKey = en-EN
>> [end]
> 
> Yes, that's right. I did not thought of this way. The only problem I see, just as the solution of creating an extension template is that I cannot give this right to "standard" writers.
> 
> I would love being able to do this:
> 
> As I edit a page, I may override the default site language to another one with a free text parameter or better a list of "site-available" languages in a drop-down menu. And in my template, I would have something like
> 
> # pseudo-code!
> [PageParameterLanguage = en]
> config.htmlTag_langKey = en-EN
> [PageParameterLanguage = de]
> config.htmlTag_langKey = de-DE
> [end]

ok no prob on this one:
extend your page types in use with your site language dropdown (with an 
extension) and evaluate the set value with a userFunc condition: 
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/4/1/#id3761045

should work

ciao alex




More information about the TYPO3-english mailing list