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.

Display all photos under a category similar to the way a weblog displays posts

May 26, 2009 10:58pm

Subscribe [3]
  • #1 / May 26, 2009 10:58pm

    Mark A. Klassen

    17 posts

    I’ve setup a gallery, and on the index page on the gallery displays all the different categories. When I click on one of the categories, it only shows one posted photo. I’d like to display all the photos under that category. I’m using tiny slideshow to display the photos under the category.

    Here is the code I’m using right now:

    {exp:gallery:entries gallery="featured_events" orderby="date" status="open"}    <li>
                <h3>{title}</h3>
    <p>            <span>{medium_url}</span><br />
                {caption}<br />
                <a href="#">{thumb_url}</a><br />
            </li>{/exp:gallery:entries}

    The problem with that code is it inserts all of the photos in between that one tag. i need it to repeat each tag in order to display the different photos.

    This question may be related to a resolved thread.

  • #2 / May 27, 2009 5:16am

    Ingmar

    29245 posts

    What version and build of EE are you using? Do you’ve got a link to the gallery? Please take a look at the docs for some sample code that you can work with.

  • #3 / May 27, 2009 8:30am

    Mark A. Klassen

    17 posts

    I’m using EE 1.6.7.

    here is a link

    http://www.simplybeauty.ca/featured_events/

  • #4 / May 27, 2009 11:03am

    Sue Crocker

    26054 posts

    I’m not seeing your opening and closing <ul> tags. If you put the code into a new template with minimal styling, does it work as expected?

    Can you create one of these and post a link to it?

  • #5 / May 27, 2009 12:10pm

    Mark A. Klassen

    17 posts

    There is an opening <ul> tag. I put the code into a new template with minimal styling:

    http://www.simplybeauty.ca/featured_events/category/C8

    it only shows the latest one in that category.

  • #6 / May 27, 2009 5:29pm

    Ingmar

    29245 posts

    The link your provided is rewritten to http://www.simplybeauty.ca/home.html, so I don’t see your gallery. Is that on purpose?

  • #7 / May 27, 2009 5:36pm

    Mark A. Klassen

    17 posts

    I got it working. I switched from the categories tag to the multiple entries tag. I didn’t think that would work, but it did.

    thanks for the help.

  • #8 / May 27, 2009 5:36pm

    Mark A. Klassen

    17 posts

    {exp:gallery:entries gallery="featured_events" orderby="entry_date" columns="1" rows="30"}    {if no_results}
    
    There are no entries available.
    
    {/if}        
    <ul id="slideshow">
            {entries}
        {row_start}<li>{/row_start}
    {row}
                <h3>    {title}</h3>
    <p>            <span>{medium_url}</span><br />
                {caption}<br />
                <a href="#">{thumb_url}</a><br />
    {/row}<br />
            {row_end}</li>{/row_end}<br />
    {/entries}<br />
        </ul><br />
    {/exp:gallery:entries}

  • #9 / May 27, 2009 5:50pm

    Ingmar

    29245 posts

    I got it working.

    That’s excellent news 😊 I am very glad to hear it. Please don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases