[TYPO3-english] Wrapping content elements according to a class

Rik Willems rik at actiview.nl
Thu Jun 10 10:56:10 CEST 2010


Hi Claudio,

Each content element has a field called 'Frame' / 'section_frame'. You 
can use this to get what you want.

Have a look in file typo3/sysext/css_styled_content/static/setup.txt to 
see how the wraps are created. You can add similar typoscript to your 
own setup.

If you put the following in your root page TSconfig you can add new 
frames and remove the ones you don't want to display.

TCEFORM {
   # Content of the layout select box for content elments
   tt_content {
     section_frame.addItems.97 = Success
     section_frame.addItems.98 = Notice
     section_frame.addItems.99 = Error
     section_frame.removeItems = 6,10,11,12,20,21
   }
}

Cheers!

Rik


Op 10-6-2010 10:41, Claudio Strizzolo schreef:
> Hello everybody,
> I need to wrap in a special way some content elements included here and
> there in several pages.
>
> Just imagine I want to wrap some contents elements into a<div
> class="myspecialcontent">...</div>  context. Things are actually more
> complex, but let's make them simple.
> Those contents may belong to different pages. Each page might contain one
> or more content elements that should be wrapped as above, while the other
> content elements should not be included in such a<div>.
>
> Is there any way to mark the special contents elements anyhow? Maybe in
> that case I might check if the content elements are marked through a TS
> condition, and wrap them as needed. I do not know how I might do it,
> though: this would just be a starting point.
>
> Thanks in advance,
>
> Claudio


More information about the TYPO3-english mailing list