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

Support archive

Is it possible to nest Low Reorder tags?

Gavin Lawrie 19 Jan 2017 20:06 question, complete

As per topic... is it possible call Low Reorder using a set name that is obtained from a Low Reorder call?

e.g.

{exp:low_reorder:entries set="test" prefix="pre_"} 
{exp:low_reorder:entries set="{pre_url_title}" prefix="sub_"}
{sub_title}
{/exp:low_reorder:entries}
{/exp:low_reorder:entries}


If not, what is the best way to get low_reorder output based on the url_title of entries in a different low_reorder set?

Replies

  1. Low 20 Jan 2017 07:57

    I don't think you can. Mostly because the EE template parser will think the first closing tag will belong to the first opening tag.

    You'd need to use an embed or something like a Low Variable snippet to work around the parsing issues, eg.

    {exp:low_reorder:entries set="test"} 
    {exp:low_variables:single var="lv_reorder_entries" preparse:pre_url_title="{url_title}"}
    {/exp:low_reorder:entries}


    Just keep an eye out for performance, as nesting tags like this can quickly escalate into many queries.

    Gavin Lawrie 20 Jan 2017 11:00

    OK - thanks. Pity. I'll see what I can do to split this into two separate steps and use some kind of temporary storage field (e.g. low_variables) to catch the interim output.