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.

Problem with Relationships field

October 27, 2013 11:28pm

Subscribe [1]
  • #1 / Oct 27, 2013 11:28pm

    roztayger

    1 posts

    Have two channels: product_entry and designer_entry

    product_entry has a field of type “Relationships” that points to a designer_entry. (single relationship)

    We had this on EE 2.3 and it was working fine (using the {related_entries} tag pair). Since an upgrade to 2.7.0 and most recently to 2.7.2, the {product_designer2} tagpair in following code keeps returning nothing. Needless to say, the product entry has the field appropriately populated. This must be so simple, yet it is driving me crazy. Please help….

    {exp:channel:entries channel="product_entry" status="Both|Men|Women|Sale" limit="1"}
    Title: {title}
    Designer: 
    {product_designer2}
    <h2>{product_designer2:title}</h2>
    <p>{/product_designer2}<br />
    {/exp:channel:entries}

    This is the output:

    Title: tan shift havana brief by ro

    Designer:

     

     

  • #2 / Oct 28, 2013 12:14pm

    Rob Allen

    3114 posts

    As it’s a single relationship have you tried:

    {exp:channel:entries channel="product_entry" status="Both|Men|Women|Sale" limit="1"}
    Title: {title}
    Designer: 
    <h2>{product_designer2:title}</h2>
    <p>{/exp:channel:entries}

  • #3 / Oct 28, 2013 3:30pm

    roztayger

    1 posts

    yes, I did try that too. Same result….

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

ExpressionEngine News!

#eecms, #events, #releases