Displaying Playa data from Low Vars
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
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.
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?
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:
Russ Back 27 Jul 2012 15:11
You're a legend.
Thanks Low. Sorry about that - I knew it was a basic one.
Low 27 Jul 2012 15:12
No worries, mate. Glad it's working for you now.