[TYPO3-english] TYPO3 | Wrap only if not equal to value

Shahil Sham ss at phases.dk
Fri Nov 16 15:27:57 CET 2012


@Martin.. Awesome :D

On Fri, Nov 16, 2012 at 7:49 PM, Martin Aarhof
<martinprikaarhof at gmail.com>wrote:

> On 16-11-2012 15:06, Shahil Sham wrote:
>
>> Hi guys,
>>
>> Am using the following TS to customize my title tag to append the website
>> name to the page title.
>>
>> (Page title - Site Name).
>>
>>      config.noPageTitle = 2
>>      page.headerData.5 = TEXT
>>      page.headerData.5.field = subtitle // title
>>      page.headerData.5.wrap = <title>| - Site Name</title>
>>
>> My issue is that I do not want it to appear on the Homepage since the page
>> title there is the same as my site name. (So it says Site Name - Site
>> Name).
>>
>> My homepage is the tree root, and all other pages are under it.
>> I want to omit this condition only for Home page.
>>
>> I am looking for such a condition,
>>
>>      WRAP ONLY IF NOT EQUALS 'Site Name'
>>
>> How can I achieve this. Any ideas?
>>
>>
> [globalVar = TSFE:id = 10]
>
> page.headerData.5.wrap = <title>| - Site Name</title>
> [else]
> page.headerData.5.wrap = <title>|</title>
> [end]
>
> Now just change 10 to your homepage ID
>
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>



-- 
Shahil Sham

ss at phases.dk
skype: shahilsham


More information about the TYPO3-english mailing list