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.

Help: Using “Related Entries” multiple times causes error

March 06, 2010 11:59am

Subscribe [1]
  • #1 / Mar 06, 2010 11:59am

    Luc Latulippe

    41 posts

    Am I to understand it’s not possible to use Related Entries more than a single time in a weblog entry? The code below ends up yielding a string of gobbledygook, but when I use only a single instance of Related Entry, everything works as expected.

    {exp:weblog:entries weblog="weblogname"}
        {title}
        {body}
            {related_entries id="customfield_1"}{fieldname}{/related_entries}
            {related_entries id="customfield_2"}{fieldname}{/related_entries}
            {related_entries id="customfield_3"}{fieldname}{/related_entries}
    {/exp}

    In this case, I happen to also be using Conditional Global Variables, but with or without, the results are the same. Basically it outputs this:

    {REL[customfield_1]LLkhQT49REL}
    {REL[customfield_2]cB40XeroREL}
    {REL[customfield_3]XdTkINfzREL}

    As I understand it, Playa or some other plugin or extension would potentially resolve this, but before I purchase anything I was wondering if there was an existing solution. Thanks!

  • #2 / Mar 06, 2010 12:37pm

    Luc Latulippe

    41 posts

    Happily, Mark Huot’s Multi-Relation extension did the trick for now: http://ellislab.com/forums/viewthread/39595/

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

ExpressionEngine News!

#eecms, #events, #releases