[TYPO3-dev] Wrap div around own plugin

Philipp philippwrann at gmx.at
Thu Nov 14 15:26:45 CET 2013


Here a weird construct i made for on of our customers, maybe it is of help to you:

# configuring tt_content section_frames and layout
tt_content.stdWrap.innerWrap.cObject {
	# adding class for layout setting
	default.20.10.noTrimWrap.cObject = CASE
	default.20.10.noTrimWrap.cObject {
		key.field = layout
		100 = TEXT
		100.value = || widget blue |
		101 = TEXT
		101.value = || widget green |
		102 = TEXT
		102.value = || widget yellow-1 |
		103 = TEXT
		103.value = || widget yellow-2 |
		104 = TEXT
		104.value = || widget dark-blue |
		105 = TEXT
		105.value = || widget native |
		106 = TEXT
		106.value = || widget contrast-green |
		107 = TEXT
		107.value = || widget medium-green |
		108 = TEXT
		108.value = || widget light-blue |
		109 = TEXT
		109.value = || widget light-green |
		110 = TEXT
		110.value = || widget orange |
		default = TEXT
		default.value = 
	}
	# adding class for section_frame setting
	100 < tt_content.stdWrap.innerWrap.cObject.default
	100.20.10.value = image-no-margin
	101 < tt_content.stdWrap.innerWrap.cObject.default
	101.20.10.value = image-has-margin
	102 < tt_content.stdWrap.innerWrap.cObject.default
	102.20.10.value = horizontal preview article
	103 < tt_content.stdWrap.innerWrap.cObject.default
	103.20.10.value = vertical preview article
	104 < tt_content.stdWrap.innerWrap.cObject.default
	104.20.10.value = vertical preview small article
	105 < tt_content.stdWrap.innerWrap.cObject.default
	105.20.10.value = noheader
	106 < tt_content.stdWrap.innerWrap.cObject.default
	106.20.10.value = listing
	107 < tt_content.stdWrap.innerWrap.cObject.default
	107.20.10.value = nomarginbottom
}

That works and gives you the possibility of 2 independent wraps based on layout and section_frame
using registers you can do event more weird stuff like setting specific image-dimensions....


weird...



More information about the TYPO3-dev mailing list