We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29201
    • 239 Posts
    I would like to use ditto to display this:
    <div class="prperty_1">
    	{{ChunkRed}}
    </div>
    <div class="prperty_1">
      {{ChunkBlue}}
    </div>
    <div class="prperty_1">
    	{{ChunkRed}}
    </div>
    <div class="prperty_1">
      {{ChunkBlue}}
    </div>
    <div class="prperty_1">
    	{{ChunkRed}}
    </div>
    <div class="prperty_1">
      {{ChunkBlue}}
    </div>
    <div class="prperty_1">
    	{{ChunkRed}}
    </div>
    <div class="prperty_1">
      {{ChunkBlue}}
    </div>
    
    
    


    and it needs to scale. It looks like this might be able to help: http://wiki.modxcms.com/index.php/PHx/CustomModifiers#phx:alternateClass .. but I couldn't get it going. Would anyone be so kind enough to lend me a hand? [ed. note: taiyo1578 last edited this post 12 years, 6 months ago.]
      • 4310
      • 2,310 Posts
      You should be able to use the &tplAlt parameter.
      &tplAlt=`ChunkBlue` &tpl=`ChunkRed`
        • 29201
        • 239 Posts
        Wooohooo! Thank you bunk58!