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

Rob De Vries dev at rob-ot.be
Fri Nov 16 15:27:02 CET 2012


Hey Shahil,

I guess you are more looking for a solution where you don't want to add your 
title to the home page, who is on tree level 0, or not on a page with ID = 1 ?

sounds like a job for conditions.
http://typo3.org/documentation/document-library/core-documentation/
doc_core_tsref/4.1.0/view/4/1/

[treeLevel = 0]
	config.noPageTitle = 2
	page.headerData.5 = TEXT
	page.headerData.5.field = subtitle // title
	page.headerData.5.wrap = <title>| - Site Name</title>
[end]

or 

[globalVar = TSFE:id = 1]
	config.noPageTitle = 2
	page.headerData.5 = TEXT
	page.headerData.5.field = subtitle // title
	page.headerData.5.wrap = <title>| - Site Name</title>
[global]





 
> 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?
> 
> 
-- 
--------------------------
Rob De Vries
www.rob-ot.be



More information about the TYPO3-english mailing list