[TYPO3] Change page title only to one page

Ries van Twisk typo3 at rvt.dds.nl
Fri Apr 20 03:32:37 CEST 2007


Hey,

you cannot put conditions there,
try something like this:

page.headerData.1 = TEXT
page.headerData.1 {
    noTrimWrap = |<title>Root page title</title>|
}

[globalVar = TSFE:id=1]
[else]
   page.headerData.1.field = title
   page.headerData.1.noTrimWrap = |<title>|, internal page title</ 
title>|
[ end ]



On Apr 19, 2007, at 7:35 PM, Cray Flatline wrote:

> I tried such condition, but it doesn't work )):
>
> config.noPageTitle = 1
> page.headerData.1 = TEXT
> page.headerData.1 {
> [globalVar = TSFE:id=1]
>    noTrimWrap = |<title>Root page title</title>|
> [else]
>    field = title
>    noTrimWrap = |<title>|, internal page title</title>|
> [ end ]
> }
>
>> Check for conditions in TSRef.
>
>>> I'm rewriting page titles with such script
>>>
>>> config.noPageTitle = 1
>>> page.headerData.1 = TEXT
>>> page.headerData.1 {
>>>     field = title
>>>     noTrimWrap = |<title>|, additional text </title>|
>>> }
>>>
>>>
>>> But I need to rewrite title ONLY of root page (id=1) to "Root title
>>> text". Can somebody help me with it? I tried to make it with "if
>>> {}" in
>>> above script but it didn't work. I'm a newbie in TS, so please help
>>> me.
>>>   :-)
>>>
>>> (sorry for above mail - some troubles with mailer)
>>> --
>>> WBR, Cray Flatline
>>> _______________________________________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

-- 
Ries van Twisk
Freelance Typo3 Developer
email: ries at vantwisk.nl
web:   http://www.rvantwisk.nl/
skype: callto://r.vantwisk






More information about the TYPO3-english mailing list