Steve
sad I’m a little concerned...

Playa 4: Getting parent custom field within child paired tags

Seems odd that this isn't working for me, but I'm not able to get the value of a custom field of the parent when within a child paired tag.

Example:

{exp:channel:entries}

{if bg_color}

{bg_color limit="1"}

img class="{child_custom_field}" src="{parent_custom_field}"

{/bg_color}

{/if}
{/exp:channel:entries}

Basically I'm giving a product multiple color options, but when showing a single one I want to give the parent's image a class based on a single child. I tried using {parent:custom_field} but that doesn't work.

In my original code, I have a few more "if's" throughout; this is a simplified example. I can supply the full code if that will help.
1 person has
this question
+1
Reply