We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18606
    • 25 Posts
    Hi everybody!

    I have some documents display in a page with a Ditto call.
    The template is a simple list:

    <ul class="griglia">
          <li><ul>
                  <li class="lista1"> <a href="[~[+id+]~]">[+pagetitle+]</a></li>
    	      <li class="lista2"><p>[+campo1+]</p></li>
    	      <li class="lista3"><p>[+campo2+]</p></li>
          </ul></li>
    </ul>
    


    Is it possible to alternate lines with 2 colors?
    For example: one red, one white, one red..

    Thanks a lot.
      • 33337
      • 3,975 Posts
      Yes, it is. Create another chunk for the template, and use the CSS to control the colors, add &tplAlt=`whatever-you-name-it` to your ditto call.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 18606
        • 25 Posts
        Thank you zi !!

        Matteo.