Skip to main content

Search

Skybow Document Generator, datasource: for multiple items - Access to "count" and "index" of the loop

Answered

Comments

2 comments

  • Official comment
    skybow Support

    Hi Christoph Käferböck,

    you can use javascript global window variables in your template like this:

    [[{ window.dgcurrentindex=0; return ""; }]]
    [[loop]]
      [[{ window.dgcurrentindex++; return window.dgcurrentindex; }]] - [[Title]]
      ----------------------------------------------------------------------
    [[end loop]]
    Total: [[{return window.dgcurrentindex; }]]

    Kind regards

    skybow Support

  • Christoph Käferböck

    Hi together,

    thanks for the idea, works fine.

    Best regards,

    Christoph

    0

Please sign in to leave a comment.