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.

Simple relationship not working

January 19, 2011 10:40am

Subscribe [2]
  • #1 / Jan 19, 2011 10:40am

    ralph.m

    225 posts

    EDIT:

    O man, please ignore this thread. I thought I was getting the hang of EE, but have made a sub-entry-level mistake. Turns out the field label and field name were in the wrong order in the field settings. Arrrgh! Anyhow, all fixed now.

    ==========original post

    I’ve created relationships before, but just can’t get it working at the moment, using 2.1.3. I can’t see any mistakes, but the relationship field is simply outputting as the field tag rather than the content from that field.

    I created two channels: one (event-notice) that includes a relationship field (event-notice-link), and another channel (event-notice-rels) that has small posts for related info, with a single custom field (event-notice-rels-content).

    The template code reads:

    {exp:channel:entries channel="event-notice" disable="member_data|pagination"}
        <div class="entries">
            <h3>{title}</h3>
    <p>    {event-notice-content}<br />
        {related_entries id="event-notice-link"}<br />
            {event-notice-rels-content}<br />
        {/related_entries}<br />
    {/exp:channel:entries}

    The {title} and {event-notice-content} fields are ourputting fine, but the the relationship line outputs as—

    {event-notice-rels-content}

    (that is, the tag appears instead of the content).

    Can anyone suggest what I’m doing wrong? I’ve checked for typos many times, but there are none that I can find. Content has been posted in both channels.

    Thanks for any suggestions.  😖

  • #2 / Jan 20, 2011 3:48am

    Ingmar

    29245 posts

    Glad to see you’re all set 😊 No worries, and post again as needed, please.

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

ExpressionEngine News!

#eecms, #events, #releases