[TYPO3-english] Set page title based on conditions
Dennis Hoffland
d.o.hoffland at tele2.nl
Wed Jun 17 16:59:27 CEST 2015
Hello,
What I want to achieve is this:
- set the page title in the header for the Home page (id=1) to "Another Home page title" for the default language (= en), overriding the Page Title (= Home)
- set the page title in the header for the Home page (id=1) to "Een andere Home pagina titel" for the Dutch language (= nl), overriding the Page Title (= Home)
- for all other pages simply use the Page Title (as set in the General tab of the page settings)
First of all, the language section of my TS setup is:
config.linkVars = L
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = en
config.locale_all = en_UK.UTF8
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = nl
config.locale_all = nl_NL.utf8
To acheive my goal I tried adding this:
page.headerData.40 {
20 = TEXT
20 {
wrap= <title> {$siteName} | |</title>
[globalVar = TSFE:id != 1]
field = title
[global]
[globalVar = TSFE:id = 1]
value = Another Home page title
[global]
[globalVar = TSFE:id = 1] && [globalVar = GP:L = 1]
value = Een andere Home pagina titel
[global]
}
}
Unfortunately, the code above uses the Page Title all the time ...
What am I doing wrong?
Kind regards,
Dennis
More information about the TYPO3-english
mailing list