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

Support archive

Low Reorder Duplicating Entries

Scott Harrington 26 Sep 2013 12:05 problem, complete

Hello, I purchased Low Reorder and I'm using it with pagination and Expresso Store. The re-ordering works fine, however it seems to duplicate and show each entry 5 times?!?!

I have been through here and the docs but cant seem to see where I've gone wrong. Below is my code:

{exp:low_reorder:entries set="main_store" fallback="yes" limit="5" paginate="bottom"}
<!-- Store Variables Here -->
{/exp:low_reorder:entries}

Replies

  1. Low 26 Sep 2013 12:15

    Can you post the full template code here (or use http://pastie.org ), and the output of the template debugger as well?

  2. Preston Thomas 8 Dec 2015 12:17

    I have the same problem
    When I add the reorder code to my template I get the loop repeated 8 times
    I have 8 entries in my reorder list and then i get them all looped 8 times.
    Also their order isn't quite right

    the code looks like this

    <!-- Portfolio Index Grid -->

    <!--{exp:channel:entries channel="Portfolio_listing" dynamic="no"}-->
    <!-- Project -->
    {exp:low_reorder:entries set="portfolioReorder"}


    {portfolio_images cover_only="yes"}
    {exp:imgsizer:size src="{image:url:medium}" width="286" height="286" quality='90'}

    {/exp:imgsizer:size}
    {/portfolio_images}


    {/exp:low_reorder:entries}

  3. Low 8 Dec 2015 12:21

    This is because you're nesting the low_reorder:entries tag inside a channel:entries tag. The LR tag acts as a wrapper for the native channel:entries tag, so it's template content is parsed by the outer tag first. Then LR tries to parse the already parsed template chunk.

    Better un-nest the tags, use an embed, or use the prefix parameter to avoid variable name collisions:

    {exp:low_reorder:entries set="foo" prefix="bar:"} 
    {bar:title}
    {/exp:low_reorder:entries}

  4. Preston Thomas 8 Dec 2015 12:27

    Thank you - wow that was a fast response
    I actually had those lines commented out but it was still parsing them
    all sorted thanks for the tip

  5. Low 8 Dec 2015 12:29

    Yeah, you're using html comments rather than EE's comments {!-- --}. The latter will remove the actual code from the template before it is parsed. The former will not affect the parsing of the template itself.