[TYPO3-english] Content element wrap
Martin Bernt Rud
martin.b.rud at gmail.com
Tue Jul 14 08:11:30 CEST 2009
Hej Jesper,
Try this:
tt_content {
stdWrap.dataWrap (
<div id="ce_{field:uid}" class="contentElement CType_{field:CType}
section_frame_{field:section_frame} header_layout_{field:header_layout}">
|
</div>
)
}
It gives specific classes on every CType (text, image, text/image and so on)
and then you can hit the headers and other sub elements with CSS like
div.CType_text h1 {
...
}
The classes section_frame_{field:section_frame}
header_layout_{field:header_layout} gives you further ways of doing things.
In generel you can wrap with properties from all field in the table
tt_content.
Regards,
Martin
2009/7/14 Jesper Mathiasen <jekorma at gmail.com>
> Hello.
>
> First of all I'm very much a Typo3 noob. Here's my question.
>
> I need several kinds of content elements to be wrapped in a specific
> class for css styling. I.e. all text, image, text w. image elements,
> including headers belonging to them. I know next to nothing about TS,
> and as far as I can gather from other forums this might be a bit tricky
> to achieve.
>
> So what do you say, is it possible?
>
> regards,
>
> Jesper.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list