[TYPO3-english] SPLIT_COUNT and prioriCalc

Roberto Torresani erreti at gmail.com
Sun Jun 2 19:37:18 CEST 2013


Hi!
I have a question with a typoscript code:

      10 = TEXT
      10.field = tsc_immagine
      10.split {
        token = ,
        cObjNum = 1
        #1.current = 1
        1.cObject = IMAGE
        1.cObject.file {
          import = uploads/pics/
          import.current = 1
        }
        1.stdWrap.dataWrap = <li data-thumb="images/thumb{REGISTER
:SPLIT_COUNT}.jpg">|</li>
      }

The output of the code is:
<li data-thumb="images/thumb0.jpg"><img src="uploads/pics/slide1.jpg"
width="929" height="622" alt=""></li>
<li data-thumb="images/thumb1.jpg"><img src="uploads/pics/slide2.jpg"
width="929" height="622" alt=""></li>

I need add 1 to the SPLIT_COUNT to have as result the code:

<li data-thumb="images/thumb1.jpg"><img src="uploads/pics/slide1.jpg"
width="929" height="622" alt=""></li>
<li data-thumb="images/thumb2.jpg"><img src="uploads/pics/slide2.jpg"
width="929" height="622" alt=""></li>

What is the best way to add 1 to REGISTER:SPLIT_COUNT?

Thank you
Roberto


-- 
Certified TYPO3 Integrator


More information about the TYPO3-english mailing list