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.

Reverse Related Entries

June 14, 2010 3:51pm

Subscribe [2]
  • #1 / Jun 14, 2010 3:51pm

    newforms

    8 posts

    I’ve followed episode 9 from Ryan Irelands excellent Screen-cast about related entries. But I somehow just can’t get it to work.
    This is my code:

    {exp:weblog:entries weblog="events"}
    
    {reverse_related_entries id="event_gallery"}
    <h4>Photos from this event</h4>
    <p>{gallery_photos}<br />
    <a href="http://{exp:imgsizer:size" class="top_up">_{exp:imgsizer:size src="{photo}" width="170" height="113" alt="{photo}" class="{switch="img_row|img_row|img_row|img_row|img_row_last"}"}</a><br />
    {/gallery_photos}<br />
    <div class="clearfix"> </div><br />
    Check out the other <a href="/photos/">photo galleries</a><br />
    {if no_related_entries}<br /></p><h4>No photos available for this event</h4>
    <p>{/if}</p>
    
    <p>{/reverse_related_entries}</p>
    
    <p>{/exp:weblog:entries}

    The {gallery_photos} is a matrix file field. Nothing shows up though, not even the “No photos available for this event”.
    At this point, I’m not sure if I’m just blind… if I looked at it to long… if there’s something obvious missing… also, let me know of you need more code or info about my custom fields, in order to be able to understand what I’m trying to do.

    The live site can be found here. On the bottom of that site, the “tribeca” part of this page is supposed to show up.

    Does that make sense? Any help is much appreciated.
    Thanks.
    Timo.

  • #2 / Jun 14, 2010 4:48pm

    Ingmar

    29245 posts

    What version and build of EE are you using? Have you tried a simple example from the docs?

  • #3 / Jun 15, 2010 1:22pm

    newforms

    8 posts

    I’m using “Build: 20100430”
    I’m going to give the example from the docs a shot.
    Thx.

  • #4 / Jun 15, 2010 3:21pm

    Ingmar

    29245 posts

    Very good. Just keep us in the loop, please.

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

ExpressionEngine News!

#eecms, #events, #releases