我們使用TYPO3 4.5和6.2 TYPO3的follwing片段做。在每個頁面上輸出類和id。只是風格你的CSS。
<body id="pid13" class="be- rpid13 level1 no-subs">
片段,將它放在根目錄設置:
page {
bodyTagCObject >
bodyTagCObject = COA
bodyTagCObject {
### id of page in root level:
10 = TEXT
10.data = levelfield:1, uid
10.dataWrap = id="pid{TSFE:id}" class="be-{TSFE:beUserLogin} rpid|
### current level/depth of page
20 = TEXT
20.data = level:1
20.noTrimWrap = | level| |
### if page has subpages
30 = TEXT
30.value = has-subs
30.if.isTrue.numRows {
table = pages
where = pid=this
}
### if page has NO subpages
40 = TEXT
40.value = no-subs
40.if.negate = 1
40.if.isTrue.numRows {
table = pages
where = pid=this
}
50 = TEXT
50.value = "
stdWrap.noTrimWrap = |<body |>|
}
}
你可以用你的問題解決方案結合起來,並插入* page.4.bodyTagCObject.insertData = 1 *插入在類的UID。 – 2014-12-01 20:47:36