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.