[TYPO3-dev] Wrap tt_content elements in plugins different

bernd wilke t3ng at bernd-wilke.net
Thu Apr 30 15:41:44 CEST 2015


Am 30.04.15 um 13:49 schrieb Katharina M:
> Hi there
>
> I changed the TYPO3 default wrapping of tt_content elements in my
> typoscript - everything worked fine so far:
> stdWrap.innerWrap.cObject=CASE
> stdWrap.innerWrap.cObject {
>
>     key.field = colPos
>
>     default = TEXT
>     default.value = <div class="default-content my-own-class">|</div>
> }
>
> Later I realized, I need a different wrapping of my content-elements in
> all my plugins. I tried to change this with the following lines:
> tt_content.list.10.tx_jfmulticontent_pi1 >
> tt_content.list.20.tx_jfmulticontent_pi1.stdWrap.dataWrap = <div
> class="different-wrap">|</div>
> (It's a special wrap fo jfmulticontent..)
>
> But it's not working and I didn't find an other solution to solve my
> problem.
> Does anybody have a workaround for me?
>
> I know, I could solve the wrapping-problem with assigning a frame or a
> layout, but if I could make it work automatically, it would be awesome!
>

you may enhance the classes-wrap used for layouts with a 'fix' class 
depending whether the CE is a jfmulticontent plugin.

irgend wie so in etwa, da wo die std-Klassen für ein CE zusamman gesetzt 
werden:

tt_content.stdWrap.????.noTrimWap = | my-special-class||
tt_content.stdWrap.????.noTrimWap {
	stdWrap.if {
		equal = tx_jfmulticontent_pi1
		field = CType
	}
}

bernd
-- 
http://www.pi-phi.de/cheatsheet.html



More information about the TYPO3-dev mailing list