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

Support archive

Passing LV as Channel Entries param problem

trif3cta 12 Sep 2011 22:11 question, complete

I'm passing a list of Entry IDs to a Channel Entries entry_id parameter. My LV is set to parse early.

The raw syntax works: {my_var}

The explicit way does not: {exp:low_variables:parse var="my_site:my_var"}

I need the latter so I can use the my_site:my_var, as this is an MSM install.

To be thorough, I manually closed the single tag to no avail. The template debugger shows the entry_id param as the tag rather than the output.

Any insight greatly appreciated!

Replies

  1. Low 12 Sep 2011 22:18

    Yeah, you can't use a tag as a parameter value for another tag in EE. You'll have to nest it. This might work:

    {exp:low_variables:parse var="my_site:my_var"} 
    {exp:channel:entries entry_id="{value}"}
    ...
    {/exp:channel:entries}
    {/exp:low_variables:parse}

  2. trif3cta 12 Sep 2011 22:37

    Of course! Didn't think of nesting it like that.

    And to think I was about to change the PHP parsing stage to echo garbage as a param....

    $lv_tag = '{lv_tag}';

    LOL

    Thank you kindly. When this site is done, I'll show you how amazing LV is coming through for us (hot multi-lang on MSM action).

    Thanks again.