[TYPO3-english] Adding html to multiple content elements
JoH asenau
info at cybercraft.de
Thu Oct 8 13:11:22 CEST 2009
> Just to be sure, when following the tutorial "modern template
> building" and thus using the Auto-parse Template,
> the implementation i want is not possible??
Of course it is :-)
And there is no need to struggle with all the XML overhead, the weird data
management and the other conceptual defects of TemplaVoila, when all you
need is a simple box around your content elements.
You just have to make sure that the "wrap" you are using got stdWrap
properties and that it's not already in use.
Usually innerWrap, innerWrap2 and dataWrap are not available because CSS
styled content needs them for other stuff.
So you could go for outerWrap and use the internal counter
tt_content.outerWrap.cObject = TEXT
tt_content.outerWrap.cObject {
value = |
dataWrap = <div id="box{cObj:parentRecordNumber}">|</div>
}
The "|" value is necessary here to create a complete and valid outerWrap,
that will behave like this:
<div id="box1">|</div>
<div id="box2">|</div>
...
<div id="boxX">|</div>
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
More information about the TYPO3-english
mailing list