ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How can I display a plain list of all full size images from a gallery?

November 24, 2010 7:49pm

Subscribe [3]
  • #1 / Nov 24, 2010 7:49pm

    zebake

    19 posts

    I am using the photo gallery module, and I am attempting to display a slideshow on my homepage, using images from one of my galleries.

    All I need is to output a plain list of images, such as:

    <div id="slider">
                        {site_url}images/slider/photo_01.jpg
                        {site_url}images/slider/photo_02.jpg
                        {site_url}images/slider/photo_03.jpg
                        {site_url}images/slider/photo_04.jpg
                    </div>

    I have my images in a gallery titled “slideshow”.  This is the code I attempted to use:

    <div id="slider">
                        {exp:gallery:entries gallery="slideshow" orderby="entry_date"}
                            {entries}
                                {image_url}
                            {/entries}
                        {/exp:gallery:entries}
                    </div>

    The output I get from the above code is almost there…the only thing missing is the image urls.  It lists out each image with the right width, height, alt and titled tags as entered in the photo gallery.  But, instead of the urls, it still has the {image_url} tag.

  • #2 / Nov 24, 2010 8:02pm

    zebake

    19 posts

    Sorry, forgot to mention I am using EE 1.7 with Photo Gallery module 1.2.

  • #3 / Nov 25, 2010 3:17am

    John Henry Donovan

    12339 posts

    zebake,

    Just add the variable pair of {row} in the mix

    <div id="slider">
                        {exp:gallery:entries gallery="slideshow" orderby="entry_date"}
                            {entries}
                             {row}
                                {image_url}
                              {/row}
                            {/entries}
                        {/exp:gallery:entries}
                    </div>
  • #4 / Nov 25, 2010 2:43pm

    zebake

    19 posts

    Doh, that was bone-headed of me!  Thank you so much, John.  Not sure how I overlooked that tag pair.

  • #5 / Nov 27, 2010 5:04pm

    Greg Salt

    3988 posts

    Hi zebake,

    Glad that John Henry helped you get this sorted out. Please post back if required.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases