[TYPO3] setting sitetitle inside typoscript in a condition block

Martin Mifsud martin.mifsud at bikealert.com
Fri Apr 27 10:16:23 CEST 2007


I used some code like this:

config.noPageTitle = 2
page.headerData.20 = TEXT
page.headerData.20.value = <title>My Title</title>

Martin

Zachary Denison wrote:
> I am using a single typoscript template for my site, but I have 2
> different languages in the (one tree fits all paradigm).  So I
> conditionally include the template, which works beautifully.  However
> I would like the sitetitle to be different for each language too, and
> the sitetitle does not get set according to my below code, am I doing
> something wrong? Is it not possible to set the sitetitle inside the
> typoscript.
> 
> config.linkVars = L
> config.sys_language_uid = 0
> config.language = en
> plugin.tx_automaketemplate_pi1.content.file = {$TEMPLATE_EN}
> sitetitle = This is the English Sitetitle
> [globalVar = GP:L = 0]
> 	config.sys_language_uid = 0
> 	config.language = en
> 	plugin.tx_automaketemplate_pi1.content.file = {$TEMPLATE_EN}
> 	sitetitle = This is the English Sitetitle
> [globalVar = GP:L = 1]
> 	config.sys_language_uid = 1
> 	config.language = ru
> 	plugin.tx_automaketemplate_pi1.content.file = {$TEMPLATE_RU}
> 	sitetitle = This is the Russian Sitetitle
> [global]

-- 
Martin Mifsud


More information about the TYPO3-english mailing list