Menu


How do i add the current page ID to the body tag


It might happen that you want to add the current page ID to the body tag of the page. This can be done easily with the following Typoscript


page = PAGE
page.bodyTagCObject = HTML
page.bodyTagCObject.value.field = uid
page.bodyTagCObject.value.wrap = <body id="page-|">



This will result in an id being added to the body tag with page-X where X is the page id





Google Search

 
wiki.lacisoft.com
WWW
2009-2011 (c) Lacisoft.com