Hi guys
I’m a bit stuck here.
I have the code below that will generate around 100+ gallery images related to the entry. Is there any way to use pagination to split them by pages?
{exp:weblog:entries weblog="events"}
<h3>{title}</h3>
<div id="eventsInfo" class="column span-6">
{related_entries id="eventsGalRelate" orderby="random" limit="20"}
<div class="eventsShot">
<a href="http://{image_url}" rel="lightbox" title="{title}">_ {thumb_url}_ </a>
</div>
<div class="eventsShot">
<a href="http://{image_url}" rel="lightbox" title="{title}">_ {thumb_url}_ </a>
</div>
<div class="eventsShot">
<a href="http://{image_url}" rel="lightbox" title="{title}">_ {thumb_url}_ </a>
</div>
<div class="eventsShot">
<a href="http://{image_url}" rel="lightbox" title="{title}">_ {thumb_url}_ </a>
</div>
<div class="clearfix"></div>
{/related_entries}
</div>
{/exp:weblog:entries}
When I add anything other than the multi relation ID, such as limit or sort, the error below will pop up :
Notice: Undefined index: eventsGalRelate” orderby=”random” limit=”20 in /home/domains/public_html/system/extensions/ext.multi_relationship.php on line 471
Notice: Undefined index: field_id_ in /home/domains/public_html/system/extensions/ext.multi_relationship.php on line 478
Thanks in advance!
Real thanks for the extension Mark!
After installing and updating my mod.weblog.php file because of PHP 4, I still have some errors.
I’ve added the multiple relation functionality into my weblog, but EE doesn’t save my relationship entries. So he will save the title, body etc, except my multiple relation entry or entries.
Is this a common problem or do you know how to fix this?
I have been using the extension for a while now, and its working quite nicely. Its definitely a very handy solution. 😊
If it would be possible to expand on it in the future, I would love to see a way to 1) limit the number of related entries pulled in and 2) limit which entries are pulled in based on things like post category or gallery custom field.
The reason for 1) is that I use it in an RSS feed and there I would like to only pull in one of the images associated with the post instead of all.
The reason for 2) is that some categories should not have images pulled into the RSS feed or onto the main page, whereas some categories should.
Mark - thanks for this extension. I have made good use of it here and there … If I want to show just one gallery image in a multi-relationship, I thought I could use”
{related_entries id="publishing_gallery_picture" limit="1"}
in the tag but this throws an error in the latest version 1.06. In your code it looks as if you are checking to see if there is an attribute in the tag called ‘limit’, so, am I right in thinking that this might work? Any thoughts …?
EDIT: I guess the post above is asking for the same thing. Sorry didn’t read carefully enough….
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.