0

In an EE 3 site I have a Grid field with four Grid fields, one of which is a relationship field. Content from the first three Grid Fields display properly, the relationship field does not display at all.

Here is my code:

  {content}
    <div class="hub-box col-sm-6 col-md-4 col-xs-12 col-lg-3">
      <img src="{content:thumbnail}" alt="{content:title}" />
      <h3>{content:title}</h3>
        <p>{content:summary}</p>
        <p>{content:links_to}{content:links_to:title}{/content:links_to}</p>
    </div>  
   {/content}

In the output. The thumbnail, title and summary all display fine, but the relationship field content is blank.

I have confirmed that the relationship field in the grid has content selected.

Any suggestions?

1 Answer 1

1

I recall if you're inside a relationship inside a matrix you revert to standard tags, so this

<p>{content:links_to}{content:links_to:title}{/content:links_to}</p>

Changed to this

<p>{content:links_to}{links_to:title}{/content:links_to}</p>

Or

<p>{content:links_to}{title}{/content:links_to}</p>

UPDATE Check this answer out.

2
  • I tried both of the options and nothing displays for either one. I am still open to suggestions.
    – forrest
    Dec 28, 2016 at 18:09
  • I updated my answer with a link to another answer :) Dec 29, 2016 at 4:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.