[Typo3] Wrapping content in <div> tags

Ian Fish newsgroups at babelfish.co.nz
Thu Dec 1 02:56:29 CET 2005


Hi all,
I have been looking for a way to wrap a content element in <div> tags so 
as to add styles. I'm using CSS styled content.

I found this code snip deep in the mail list (thanks tapio):

# CType: text
# *****************
tt_content.text = COA
tt_content.text {
10 = < lib.stdheader

20 = TEXT
20 {
field = bodytext
required = 1

dataWrap = <div class="basicText">|</div>
parseFunc = < lib.parseFunc_RTE

editIcons = tt_content:bodytext, rte_enabled
editIcons.beforeLastTag = 1
editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.bodytext

prefixComment = 2 | Text:
}
}

which works great, however now any images in the pagecontent aren't 
rendered, the image tag is included in the html, but the src is empty.

Any ideas?

TIA,

Ian Fish



More information about the TYPO3-english mailing list