I’m surprised I haven’t run into this before, or at least I forgot how I got it working.
I have a standard EE relationship field. In this case, I have a “Products” channel, and each product belongs to an entry in the “Designers” channel.
I quite obviously want a page to list all products for a single designer. My first attempt looked like this:
{exp:channel:entries channel="designers" url_title="{segment_3}" limit="1"}
{reverse_related_entries channel="products" limit="15"}
{snippet_product_grid}
{snippet_paginate}
{/reverse_related_entries}
{/exp:channel:entries}
According to anecdotal evidence in the EE documentation, you can’t paginate reverse related entries. So what’s the solution? Is there a way to easily grab all the product entry IDs, given the url_title of a designer? Or do I have to resort to using SQL?
Is there any way I could solve this using the Stash add-on?
What janvl said with playa. Using stash, you want to use the dev branch to which Mark Croxton has added a pagination feature for {exp:stash:get_list}
https://github.com/croxton/Stash/tree/dev#expstashget_list-tag-pair
Haven’t tested this code on a local sandbox but the code below should get you started