We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21916
    • 8 Posts
    Hello to all.
    Im looking for way to add a counter in a template. I have a tabbed news list, that is accessed by its ID in a DIV. And so,
    I needed the template for the div to be something like this:

    <div id="tabs-1">
    <p><strong>[+pagetitle+]</strong></p>
    <p>[+introtext+]</p>
    <a class="right" href="[~[+id+]~]">Read more</a>
    </div>


    Where you see the ID of the div (tabs-1) , the number should be a counter until 5, so I have 5 div with 5 diferent ID’s - ( tabs-2 ; tabs-3 ; tabs-4 ; tabs-5 );
    Anyone has an ideia how can I acomplish this?

    Can I force to get just 1 ID? In that way I could create 5 templates, and I had the problem solved.

    Thank you in advance...
      • 36592
      • 970 Posts
      I think [+ditto_iteration+] holds the count up value.
      (But it starts from zero ?)