Installing a Gallery

  • I've followed the instructions to installing the gallery although I could do the "If you want to use the field type, copy the addons/fieldtypes/albumlist folder to perch/addons/fieldtypes/" part as that folder wasn't in the installation folder. I'm not sure how relevant this is anyway to having a simple gallery added to the page.

    I've added an image to the gallery, but I cannot see how to put the gallery in a page. I've tried adding

    1. <perch:content id="album" type="albumlist" label="Album">

    but my gallery image is not showing on the page.

    I usually only use the very basic Perch functions as anything more than that seems very complicated as this exercise seems to have confirmed.

  • drewm

    Approved the thread.
  • The albumlist field type allows the editor to select an album in a content Region. It does not display the gallery on its own. The documentation shows a good example of how you might use the field type. You don't have to use it if you don't need to give the editor the option to select what album to be displayed on the page.

    If you want to display all images regardless of the album they belong to, you can use the perch_gallery_images() function:…ery/perch-gallery-images/

    If you want to display images from a specific album, you can use the perch_gallery_album_images() function:…rch-gallery-album-images/