Sean Delaney
sad I’m confused

Displaying Playa values inside a Matrix

I have a Matrix field type called product_availability.

Inside this, I have 4 columns. First column is called "region" and uses a Playa field type set to the "region_content" channel.

The remaining 3 columns use P&T Dropdown field type and display fine.

I can't display the Playa field value though. It's blank.

My code:

{product_availability}
{exp:playa:children field="region"}{title}{/exp:playa:children}
{/product_availability}

I've also tried this: This will display all entries in the "region_content" channel but not the selected one from my Matrix field type.

{product_availability}
{exp:playa:children channel="region_content"}{title}{/exp:playa:children}
{/product_availability}

I've even tried a search:title="criteria" on both with no avail.

Please help

Sean
2 people have
this question
+1
Reply

  • Hi Sean,

    That field= parameter refers to the actual Field name (in this case, product_availability), not the Col name. There's a separate col= parameter for that, and a row_id= parameter. All of which would be required if you wanted to use the {exp:playa:children} tag only to get the children of one specific cell at a time.

    But there's a much simpler way: Just use the fieldtype tag, rather than {exp:playa:children}:

    {product_availability}
    {region}{title}{/region}
    {/product_availability}
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited