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

tapio tapio.markula at dnainternet.net
Thu Sep 22 18:09:03 CEST 2005


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