All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Displaying Playa data from Low Vars

Russ Back 27 Jul 2012 14:18 question, complete

Hey Low

Sorry this is a really basic question but how can I access the Playa field vars?

I've tried this:

{exp:low_variables:parse var="lv_footer_clients"}
Title = {title}
{/exp:low_variables:parse}

But I get the title of the page I'm on, not the related entry referenced by Playa (this is all wrapped in a channel:entries tag).

Replies

  1. Low 27 Jul 2012 14:24

    Hi Russ,

    I reckon you'd need to take it out of the channel:entries tag, since that will parse the {title} tag first. That, or you might be able to use the var_prefix="" parameter introduced in Playa 4.3.1 to avoid the naming conflict.

  2. Russ Back 27 Jul 2012 14:32

    I was thinking that. The var_prefix goes on the playa primary tag, which in this case is {lv_footer_clients}. But that's not in my template as I'm using low_variables:parse.

    Any thoughts?

  3. Low 27 Jul 2012 14:43

    You can use the parameters in the low_variables:parse tag as well. Just tested this code, and it worked:

    {exp:low_variables:parse var="lv_playa" var_prefix="foo"} 
    {foo:title}
    {/exp:low_variables:parse}

  4. Russ Back 27 Jul 2012 15:11

    You're a legend.

    Thanks Low. Sorry about that - I knew it was a basic one.

  5. Low 27 Jul 2012 15:12

    No worries, mate. Glad it's working for you now.