Even/odd Typoscript

language: TypoScript
license: Other

Code for Snippet:

                
		NO.allWrap = | ###SPLITTER###
 
  		stdWrap.split {	
  			token = ###SPLITTER###
  			cObjNum = 1 |*| 2 || 3 |*| 4 || 5
  			1.current = 1
  			1.wrap = <div class="singleTeaser first">|</div>
  			2.current = 1
  			2.wrap = <div class="singleTeaser even">|</div>
  			3.current = 1
  			3.wrap = <div class="singleTeaser odd">|</div> 		
  			4.current = 1
  			4.wrap = <div class="singleTeaser last">|</div>
  			5.current = 1 	 	
  		}
comments powered by Disqus

Info

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 207
Date Added: 2011-11-07 09:33:27
Last Modified: 0000-00-00 00:00:00

Web Analytics