LV and preparsing Playa :child_ids
I've trying to get parent entries from a Playa field. My code is:
{exp:low_variables:single var="lv_goals"
preparse:entry_ids="{pubs_issues:child_ids}"}
However, it bombs out when it gets to where I output {entry_ids} in the LV. Passing a static value, or even {entry_id} is fine. I've tried early parsing for {lv_goals} Is it possible to do what I'm trying to do here?
LV version 2.3.1, Playa version 4.1.0.3
Replies
Low 22 Apr 2013 06:51
Having early parsing on or off for the Tag syntax makes no difference.
Is the lv_goals var a Textarea var?
It's probably a parse order thing; {pubs_issues:child_ids} isn't parsed to its value when the Single tag is executed.
Turn on template debugging and look up the actual tag that is processed in there. What does that say?
Sarah Tan 24 Apr 2013 08:54
Guess it is the parse order then? Can you think of a workaround?
This is in the LV (textarea):
Low 24 Apr 2013 09:00
Yeah, see this in the log:
That's where it goes bork. It's a tag inside another tag's parameter, both using double quotes. You might be able to work around it with this:
Note the single quotes for the preparse parameter. The parse="inward" param might execute the tag inside the parameter.
Sarah Tan 24 Apr 2013 09:03
Amazing! That combo did it. Thanks so much, Low!