Bodytag Page id

Submitting your vote...
Rating: 4.7 of 5. 6 vote(s).
Click the rating bar to rate this item.

Dieses Snippet fügt die Page id in den Bodytag ein. Das Ergebnis sieht dann folgendermaßen aus:

 

<body id="blog-456">

 

# bodyTag
page.bodyTag >

page.bodyTagCObject = TEXT
page.bodyTagCObject.field = uid
page.bodyTagCObject.wrap = <body id="blog-|"> 


Comments


Dick, 24-08-09 12:26:
Hi there,

do you also have a way to give the body of the frontpage one id (or class) and all the other subpages another class?

frontpage
<body id="home">

all other subpages
<body id="sub">

Thanks!
Tobias, 24-08-09 17:38:
hello,
you can use the PIDupinRootline condition, look at following example (assuming your root page has page id 1):
page.bodyTag >
page.bodyTagCObject = TEXT
page.bodyTagCObject.value= <body id="home">
[PIDupinRootline=1]
page.bodyTagCObject.value= <body id="sub">

[end]
Olli, 25-08-11 14:31:
How can I pass on the ID from the mother page to the daughter page? Is that possible?

Add comment

* - required field

*



*
*

Top 10 Updates

Login geändert am  09-Sep-2010 11:31:35
Schöne Schriften mit Google Font API geändert am  20-May-2010 16:36:59
TS basierte Searchbox für Indexed Search geändert am  18-May-2010 18:26:54
TYPO3 SEO geändert am  30-Apr-2010 09:43:20
Suchmaschinenfreundliche grafische Überschriften in TYPO3 geändert am  30-Apr-2010 09:33:56
Erstellen eines einfachen Infocenters mit TYPO3  geändert am  17-Nov-2009 12:11:22
Funktionierendes Section Menu mit TemplaVoila geändert am  05-May-2009 12:42:40
"Nicht im Menü" in Sitemap anzeigen geändert am  05-May-2009 12:12:24
Implementation des DHTML Menüs von brainjar.com  geändert am  01-Feb-2009 14:01:36
Beispiel DHTML Menü geändert am  01-Feb-2009 13:47:38

Latest comments

18-Jan-2012 11:03:20
cjjgeb cjjgeb schrieb: qUWC8M <a href="http://yviwfgyvopxz.com/">yviwfgyvopxz</a>
Typolink
18-Jan-2012 05:39:25
Melia Melia schrieb: Stands back from the kybeoard in amazement! Thanks!
Typolink
02-Jan-2012 22:48:33
Dietmar schrieb: Doch, genau das soll es doch sein. Sonst könntest Du ja die Seiten in der Vorschau nicht...
Eigenes vhost für das TYPO3 Backend
English
Suche: