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: Need to use "Related Entries" multiple times inside one weblog

March 05, 2010 3:41pm

Subscribe [1]
  • #1 / Mar 05, 2010 3:41pm

    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 thusly:

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

    Before I shell out for Playa or some other plugin or extension that would potentially resolve this, 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