We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36461
    • 102 Posts
    Hey,

    I scrolled through gallery documentation but didn’t find anything like this.

    I would like to output album image count in front-end, so when album gets displayed, image count of that album gets displayed below thumbnail.

    Is this possible ?

    Chunk:

    <div class="albumPreview">
    <h3><a href="[[~[[*id]]?&[[+albumRequestVar]]=`[[+id]]`]]">[[+name]]</a></h3>
    <div class="thumb">
    <a href="[[~[[*id]]?&[[+albumRequestVar]]=`[[+id]]`]]"><img src="[[+image]]" alt="[[+name]]"/></a>
    </div>
    <div class="desc">
    <strong>[[+imagecount]]</strong>
    <p>[[+description]]</p>
    <a href="[[~[[*id]]?&[[+albumRequestVar]]=`[[+id]]`]]" class="view">View gallery</a>
    </div>
    </div>
      • 34120
      • 236 Posts
      Sorry I can’t help at this stage but I’m looking to do the same thing.

      So for example: for the third image out of 25 total images display something like (3 of 25)

      edit:
      Check here smiley http://modxcms.com/forums/index.php/topic,67300.0.html
      Still not sure how to do the count for the current image though.
        • 37449
        • 57 Posts
        my solution for getting the total number of images in an album just needs [[+albumCount]].

        See it in action at http://www.darrenjehan.me.uk/gallery-home.php
          formerly sumodaz on here!