[TYPO3-english] Content element wrap
Victor Livakovsky
v-tyok at mail.ru
Tue Jul 14 12:31:44 CEST 2009
Hi, Jesper.
> 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.
>
If you need all of them to be wrapped into one class and you are using
standard template engine you may try this:
page.20 {
workOnSubpart = DOCUMENT_BODY
...
subparts.CONTENT < styles.content.get
subparts.CONTENT.renderObj.stdWrap.wrap = <div
class="cobtent_container">|</div>
...
}
Regards.
More information about the TYPO3-english
mailing list