How do I include a image in a grid fieldtype inside a relationship?
{exp:channel:entries limit="1" channel="patterns" dynamic="yes" disable="member_data|trackbacks"}
{related_patterns}
{relationship:pattern_images row_id="1"}
{relationship:pattern_images:image}
{/relationship:pattern_images}
{/related_patterns}
{/exp:channel:entries}
the relationship field is pattern_images the cell is images
Other fields are relating properly (ie title etc) It is just the grid field that is causing issues
Both relationship variables and grid variables need prefixes, it looks like you’re using relationship: as a prefix, which doesn’t look quite right. If I’m reading your code correctly, you will need something like this:
{exp:channel:entries limit="1" channel="patterns" dynamic="yes" disable="member_data|trackbacks"}
{related_patterns}
{related_patterns:pattern_images row_id="1"}
{related_patterns:pattern_images:image}
{/related_patterns:pattern_images}
{/related_patterns}
{/exp:channel:entries}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.