Raffinatore
Raffinatore

Reputation: 133

Typo3 [globalVar = TSFE:id=6] - inheritance

I have a typo3 site and i wanna add a seperated css for one menu point with the subsite.

To the typoscript i added:

[globalVar = TSFE:id=6]
  page.headerData.10 = TEXT
  page.headerData.10.value (
     <link rel="stylesheet" type="text/css" href="fileadmin/templates/blau.css"        media="all" />
)
[global]

So far it works for the page with the id 6. How can i write the script that it inherits the values for the sub sites of the page with the id 6?

Upvotes: 0

Views: 4034

Answers (1)

Akheraphin
Akheraphin

Reputation: 86

Use this condition instead

[PIDinRootline = 6]
   page.headerData.10 = TEXT
   page.headerData.10.value (
      <link rel="stylesheet" type="text/css" href="fileadmin/templates/blau.css" media="all" />
   )
[GLOBAL]

You will find documentation on condition (here PIDinRootline) in the TSref

Upvotes: 5

Related Questions