[TYPO3-english] TS arithmetics
Christopher Torgalson
bedlamhotel at gmail.com
Mon Jul 26 17:23:51 CEST 2010
Hi,
On Mon, Jul 26, 2010 at 8:11 AM, Milicev Uros <milicev at gmail.com> wrote:
> Hello list,
>
> What I am trying to do is to increment element.....but without sucess. Any
> ideas?
>
> hundred times modified TS looks like:
>
> lib.topMenu.2 = TMENU
> lib.topMenu.2 = TMENU
> lib.topMenu.2 {
> noBlur = 1
>
> stdWrap.cobject = COA
> stdWrap.cobject {
> 10 = TEXT
> 10.data = {field:uid}+1
> 10.prioriCalc = 1
> 10.wrap = <br /><div id="m|" onmouseover="mcancelclosetime()"
> onmouseout="mclosetime()"><ul>
> }
> allWrap = |</ul></div></li>
>
> }
>
> Thank you in advance,
The basic problem is that you're trying the syntax of .dataWrap with
.data. Something like this should probably work (untested!):
10 = TEXT
10 {
cObject = TEXT
cObject {
dataWrap = {field:uid}+1
}
prioriCalc = 1
}
I can't tell what you're doing with the markup. You may want to look
at .wrapItemAndSub if you don't already know about it (useful for
generating correct nested list markup).
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-english
mailing list