Forum

Thread tagged as: Question, Addons, Gallery

Gallery: Get the first image link / path from an album

Hi,

I'm converting an existing static site to Perch and one of the things they use is a prebuilt javascript library for the slideshow.

I'm using the Gallery addon as it's the most sensible way to manage and generate the slideshow.

I need to be able to reference the first image from a given album on the 'click here' link that starts the slideshow.

Is there a straightforward way to get the image link / path?

Thanks,

Alex

Alex Tebbutt

Alex Tebbutt 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, you should be able to set the count option to 1 to get just the first image.

Of course, brains was fried. Thank Drew.