[Typo3] Alias for the BODY as the value for the id of the page

Peter Klein peter at umloud.dk
Thu Sep 22 18:33:12 CEST 2005


Hi Tapio. Just use the "bodyTagCObject" property, instead of "bodyTag"

Like this:

-- cut --
page.bodyTagCObject = TEXT
page.bodyTagCObject.field = alias
page.bodyTagCObject.wrap = <BODY ID="alias_|">
-- cut --

---
Peter Klein / Umloud Untd.

"tapio" <tapio.markula at dnainternet.net> wrote in message 
news:mailman.1.1127405480.25810.typo3-english at lists.netfielders.de...
> Hi
>
> how to set as the value of the id attribute for BODY the name alias?
>
> for example http://www.mysite.com/this_page/
>
> could have
> <body id="this_page">
>
> I would need sometimes special CSS for some pages.
>
> this doesn't work
>
> page.bodyTag=<body id="alias_{field:alias}">
> (avoiding empty id value some prefix would be desirable - endeed
> I recommend always to set alias for every page)
>
> page.bodyTag=<body id="{$alias}">
>
> can be set *manual way* own id value but not *automatic*.
>
> The basic idea would be the same as uid in menus, for example:
>
>  NO =1
>  NO.allWrap.dataWrap = <div id="p{field:uid}">| 





More information about the TYPO3-english mailing list