We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26536
    • 6 Posts
    Hi
    I have a page with a list of albums, but I will like to show a thumbnail next to each album title. How can I grab one of the album images an put it there?

    Thanks
    Sebastian
      • 26536
      • 6 Posts
      Just in case someone is interested, I figured it out.

      In the template for the album name, called by default ’galAlbumRowTpl’ I added the following code

      <div class="album">

      <div class="thumb">
      [[#the following line show a thumbnail for the album, ~3 is the id of the page that shows the album]]
      <a href="[[~3? &[[+albumRequestVar]]=`[[+id]]`]]">
      [[!Gallery? &album=`[[+name]]` &limit=`1` &thumbTpl=`galAlbumThumb` &thumbWidth=`200` ]]
      </a>
      </div>

      <div class="link">
      [[#this line shows the album name and links to it]]
      <a href="[[~3? &[[+albumRequestVar]]=`[[+id]]`]]">[[+name]]</a>
      </div>

      </div>