3

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?

4

1 に答える 1

4

Typo3メーリングリストから答えを得ました。素晴らしいサポートがあります。

誰かがそれを必要とする場合に備えて、ここにあります。

[globalVar = TSFE:id = 10]
page.headerData.5.wrap = <title>|</title>
[else]
page.headerData.5.wrap = <title>| - Site Name</title>
[end]

10をホームページIDに変更するだけです

于 2012-11-16T14:29:50.270 に答える