ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

issue with reverse related entries

August 22, 2012 3:21am

Subscribe [3]
  • #1 / Aug 22, 2012 3:21am

    jelle

    95 posts

    Hi all,

    I have a channel with products, and a channel with cocktails. In the cocktails field group i have a relationship field with the entries from the products channel.

    In the products template i use a reverse_related_entries tag to display the cocktails that use the product you are viewing.

    The basics from the template i am using:

    {exp:channel:entries channel="products" url_title="{segment_2}"}
    ....
    {reverse_related_entries channel="cocktails"}
     {if no_reverse_related_entries}
    nothing here
     {/if}
    {my_custom_field} 
    {/reverse_related_entries}
    ....
    {/exp:channel:entries}

    This returns nothing from the cocktails channel (but does not fire the if_no_reverse_related_entries tag, so it must be seeing something), however when i use fields from the products fieldgroup, i get all from the related product(which off course is the same stuff as the current page we are viewing).

    I know i can use playa, however i prefer to keep the addon cost low, and this being such a basic use of the relationships, i’d prefer to only use the native stuff.

    we’re on EE 2.5.2, using MSM 2.1.3.

  • #2 / Aug 22, 2012 3:33am

    Ian Ebden

    312 posts

    Bit of a longshot, but are you using Croxton’s ifElse plugin? If you are, I had similar issue. But per Croxton’s docs I needed to wrap the {if no_reverse_related_entries} condition in a {no_results} tag to preserve the condition.

  • #3 / Aug 22, 2012 3:44am

    jelle

    95 posts

    no, i’m not using ifElse. and it seems it does pull info from the cocktails group: the related product

  • #4 / Aug 22, 2012 5:20am

    Paul Stone

    97 posts

    Are non-custom fields working within the reverse related entries?

    i.e. change {my_custom_field} to {title}  Does that return the correct info?

  • #5 / Aug 22, 2012 5:28am

    jelle

    95 posts

    no it doesn’t. whatever i throw at it (entry_id, url_title, title, my_custom_field) it allways returns the data from the product, not from the cocktail

  • #6 / Aug 22, 2012 5:31pm

    Dan Decker

    7338 posts

    Hey Jelle,

    Simple things first - have you checked the spellings on your channel and field names?

    Have you made sure the cocktails channel has “open” entries?

    {reverse_related_entries channel="cocktails" status="not closed"}

    Is the site up where we can get a look if need be?

    Cheers,

  • #7 / Aug 23, 2012 3:05am

    jelle

    95 posts

    Yep, spelling is good, entries are open. The site is up, but cannot provide link here, as it will show up in google. can provide you with credentials in a pm/email

  • #8 / Aug 23, 2012 9:31am

    jelle

    95 posts

    any news to report?

  • #9 / Aug 23, 2012 3:32pm

    Dan Decker

    7338 posts

    Hi jelle,

    Sure thing! Be on the lookout for an email from EllisLab!

    Cheers,

  • #10 / Aug 23, 2012 5:19pm

    Kevin Smith

    4784 posts

    Just posting a note here to let onlookers know that we’re working with Jelle privately on this for the time being. I’ll post an update back here once we have something to share!

  • #11 / Aug 27, 2012 12:46pm

    jelle

    95 posts

    hi guys,

    please look into this shortly, as we hope to launch this week. i put a temporary playa fix in place, so the client can review, but i hope to be able to keep that $75 in my pocket 😉

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases