[Typo3] css_styled_content, control header/text wraps

tapio tapio.markula at dnainternet.net
Mon Aug 15 08:47:09 CEST 2005


> My text is currently not wrapped at all, and I need to wrap that in a 
> <div></div> - how do I do this? 


# 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:
	}
}

see dataWrap. this concerns content types 'Text' and 'Text w/images'

Now the basic content has wrap - reasonable, when you have plugins in 
the same page - now you can tailor CSS better.

Why you want to get rid of DIV's for headers - they increase your 
possibilities to tailor CSS for headers.



More information about the TYPO3-english mailing list