[TYPO3-content-rendering] custom id and class per content

ben van 't ende [netcreators] ben at netcreators.com
Tue Jan 30 09:19:25 CET 2007


stefano cecere wrote:
> sorry for the silly question...
> but is it possible to easily define ad id and/or class for each content?
> 
> just a string input field on each content where to enter id/class
> 
> or doesn't it worth it?
> 
> stefano


Hi Stefano,

Yes! How about this? You can add a id to your page and to your content elements.

page.bodyTag >

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

tt_content.stdWrap.dataWrap = <div id="c{field:uid}"> | </div>


gRTz

ben
-- 
netcreators :: creation and innovation
www.netcreators.com -  www.typo3.nl


More information about the TYPO3-project-content-rendering mailing list