[TYPO3-german] wrap jedes content element einer Seite

Dave Zen foxxdav at yahoo.de
Mon Oct 24 13:03:33 CEST 2016


Ich hab diesbzgl. folgende Extension gefunden: https://docs.typo3.org/typo3cms/extensions/cewrap/

Am Ende der Seite steht folgendes:

"If you want to wrap every content element with a class and it's id, don't use this extension. This can be accomplished with one line of TypoScript:" .. Hört sich ja ganz einfach an also hab ich das mal ausprobiert.

tt_content.stdWrap.dataWrap = <a id="c{field:uid}"></a><div id="element-{field:uid}" class="element element-{field:CType}">|</div>

Ich hab schon versucht dies im TS einzubinden aber folgender Code funktioniert nicht.

lib.sektion = COA
lib.sektion {

tt_content.stdWrap.dataWrap = <a id="c{field:uid}"></a><div id="element-{field:uid}" class="element element-{field:CType}">|</div>
}

Nun wird gar kein Inhalt mehr angezeigt... :/ Scheint also doch nicht so trivial zu sein.



More information about the TYPO3-german mailing list