After reading the docs, it appears that the relationships template tag has no limit option (for multiple relationship fields). Is this correct?
I need to present only two related entries, and no more, so in that case, it might be easier to use two single relationship fields instead.
Thanks!
Are you talking about “parents” or “children” relationships?
If you’re using parents the limit parameter has always worked for me:
{exp:channel:entries channel="mychannel" limit="1"}
{title}
{parents channel="otherchannel" limit="3" orderby="entry_date" sort="desc"}
{parents:title}
{/parents}
{/exp:channel:entries}
Ah ok, for child relationships it’s worth adding the limit= parameter to see if it works (sometimes odd bits like this work but aren’t documented).
With a relationship field it’s normally up to the author as to how many entries to relate which is why the limit= parameter may not exist for children, but I can see the use case for it.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.