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

stefano cecere scecere at krur.com
Tue Jan 30 22:59:10 CET 2007


ben van 't ende [netcreators] wrote:
> 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>

ciao Ben

thanks for reply

well yes i know i can tweak with TS and configure them..
but this solution isn't very "portable"..

say that a designer/editor of mine wants to experiment with new CSS (he has accesse to the external css file)
then wants to give to a content a special class, or id...

yes i can pre-define classes and put the in the frame selector.. but hasn't the same flexibility!

very strange.. i didn't find any extension to give free id/class per content!

stefano


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