1

My head is spinning from this. I've got a Matrix field that contains a Playa field. The entries from that Playa field contain another Playa field that we need to get its title value from. I'm not sure how to get that to work.

So the code would go something like this (simplified for demonstration):

{exp:channel:entries}
    {matrix_field_name}
        {playa_field_name limit="3"}
            {separate_playa_field}{title}{/separate_playa_field}
        {/playa_field_name}
    {/matrix_field_name}
{/exp:channel:entries}

My actual code looks something like this:

{exp:channel:entries}
    {wine_styles}
        {suggestions limit="3"}
            {vineyard}{title}{/vineyard}
        {/suggestions}
    {/wine_styles}
{/exp:channel:entries}

Sticking that in a blank test template I end up with something like this:

{playa6YpDIoqY:title}
{playa6YpDIoqY:title}
{playa6YpDIoqY:title}
{/exp:playa:children}

Not sure how to get this to work. I've looked at other discussions here but they seem a bit different (I could be wrong).

1 Answer 1

2

You'll probably need to use a var_prefix to get everything to work correctly http://docs.pixelandtonic.com/matrix/templating/field.html

1
  • Thanks Sean! Missed the var_prefix bit on Matrix. Did the trick.
    – A Herrera
    Jul 30, 2014 at 21:07

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.