All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Can a reorder set be accessed via a native EE relationship field?

QB Marketing 13 Mar 2017 12:43 question, complete

I have a 2 channels - products and videos. In the videos channel, I have a relationship field with single selection enabled to relate a video.

{exp:channel:entries channel="products" url_title="{segment_1}" dynamic="no" limit="1" orderby="title" sort="asc" disable="categories|member_data|pagination" cache="yes" refresh="720" require_entry="yes"}

Videos for {title}

{parents field="vids_product" disable="categories|member_data|pagination" cache="yes" refresh="720"}

{parents:title}

{/parents}

{/exp:channel:entries}

This works fine, but I want to control the order of the videos. Can I add an orderby param to the parents loop that would use low reorder to control the order of the entries in the "videos" set?

Replies

  1. Low 13 Mar 2017 13:07

    I don't think the native Relationships field allows devs to change the order in which the entries are displayed. You'd need to collect the entry IDs and feed that to a Low Reorder Entries tag via an embed.

  2. QB Marketing 13 Mar 2017 13:14

    Ahh. Ok, I can handle it that way, sure. Not ideal but it I can see that it would work. So I would feed the IDs into the Low Reorder Entries tag as a parameter and then the ordering would still be determined by the ordering of the Low Reorder set and not the order of the IDs fed into the param?

  3. Low 13 Mar 2017 13:15

    Yeah, if you add an entry_id="" param to the low_reorder:entries tag (along with the set param), the entries will be filtered while the order would remain intact.