[TYPO3-english] how to create dynamic css class based on a counter
JoH asenau
info at cybercraft.de
Fri Feb 12 13:30:51 CET 2010
> On a website i'm developing, a teaser with portfolio items will be
> shown. I've got to reproduce the following HTML with typoscript for
> it:
> stdWrap.dataWrap = <div id="tabs-{field:uid}" class="block
block-grey">|</div>
>
> This works partially. What i'd like to do is replace
> id="tabs-{field:uid}" for a counter.
replace {field:uid} with {cObj:parentRecordNumber} and you're done.
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