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?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.