4

I'm trying to do something like:

{grid_fields}

{grid_fields:relationship}{title}{/grid_fields:relationship}

{/grid_fields}

But I don't seem to be able to pull data out of the related entry. Any ideas?

1
  • Been searching for a similar solution and your answer was extremely helpful James Muspratt. Thanks!
    – FlyDuo
    Mar 7, 2015 at 23:54

2 Answers 2

17

I'm using EE v2.7.0 and the syntax actually appears to be:

{grid_fields}
     {grid_fields:relationship}{grid_fields:relationship:title}{/grid_fields:relationship}
{/grid_fields}
0
1

Did you try...

{grid_fields}
     {grid_fields:relationship}{relationship:title}{/grid_fields:relationship}
{/grid_fields}

As of 2.6 the relationship field should be prepended with the relationship field name so that advanced relationships can work together with each other. http://ellislab.com/expressionengine/user-guide/modules/channel/relationships.html#child-entries-displaying-the-stores-and-their-menus

0

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.