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

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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