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.

related_entries inside reverse_related_entries dosen’t work as I suppose

September 09, 2011 8:22pm

Subscribe [3]
  • #1 / Sep 09, 2011 8:22pm

    brainbrain.es

    9 posts

    I have this 3 channels :

    Band (title )
    City (title, city_postal_code )
    Concert ( title, concert_band, concert_city, concert_date)

    When you enter a new Concert entry , you have to select one Band(dropdown) , one city(dropdown) , and a date.
    concert_band and concert_city are related fields logically .

    So this code works

    {exp:channel:entries channel="band" }
       The band {title} plays: 
       {reverse_related_entries}
           {concert_date} in {concert_city} 
    
       {/reverse_related_entries}
    {/exp:channel:entries}

    But I need to get the city_postal_code so I tried related_entries inside reverse_related_entries

    {exp:channel:entries channel="band" }
       The band {title} plays: 
       {reverse_related_entries}
           {concert_date} in {concert_city} 
           {related_entries id="concert_city"} {city_postal_code} {/related_entries}
       {/reverse_related_entries}
    {/exp:channel:entries}

    but Instead city_postal_code value its showing this tag {REL[concert_city]DwMB81u7REL}

    any idea?

    Thanks,
    Alfonso.

  • #2 / Sep 11, 2011 3:52pm

    Lisa Wess

    20502 posts

    Hi, Alfonso,

    Nesting a related entries tag inside a reverse related entries tag like that is not supported, and parse order is going to stop it from working.  You might look at tied entries as a possible solution.

    Please let us know if you have any other questions.

  • #3 / Sep 20, 2011 10:51pm

    Bethany Creative

    16 posts

    Bummer! I bumped into this same exact issue. Really limits what you can actually do with related entries, I basically have to rework everything around this and take a much less efficient approach. :(


    jamie

  • #4 / Sep 21, 2011 1:53pm

    Mark Bowen

    12637 posts

    Hi Alfonso / Jamie,

    Just wanted to see if you’re both okay now? Is it okay to close this thread out now?

    Thanks,

    Mark

  • #5 / Sep 21, 2011 3:02pm

    Bethany Creative

    16 posts

    Alfonso,

    Here’s is my current fix im using:

    http://blog.sidewaysgravity.com/2009/09/embedded-related-entries/

    seems to be working fine.

  • #6 / Sep 22, 2011 1:19pm

    Mark Bowen

    12637 posts

    Hi Alfonso / Jamie,

    I’m going to move this post down to the Community Help forums for you to continue this there instead.

    I’ve not read that post linked to above in its entirety however whilst using embeds may well work you are still nesting tags one way or the other and so this still wouldn’t be supported.

    I’ll move this over to Community Help though as it may still be something you want to look into.

    Thanks,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases