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

Support archive

Low Search Results - Offset not being respected when pagination tag pair is not present

arvinsim 17 Jul 2014 06:44 problem, rejected

I have this code


{exp:low_search:results
{if embed:query}query="{embed:query}"{/if}
collection="foo"
disable="categories|category_fields"
dynamic="no"
{if embed:limit}limit="{embed:limit}"{/if}
paginate="bottom"
{if embed:orderby}orderby="{embed:orderby}"{/if}
{if embed:sort}sort="{embed:sort}"{/if}
parse="inward"
}
...
{/exp:}


This tag is present in domain.com/bar/ template

The problem is that when I access the url with offset...


domain.com/bar/P10, domain.com/bar/P20, domain.com/bar/P30, etc


...they are not respecting the offset, therefore getting incorrect results.

However, when I add the pagination tag pair inside the low search results tag...


{exp:low_search:results
{if embed:query}query="{embed:query}"{/if}
collection="foo"
disable="categories|category_fields"
dynamic="no"
{if embed:limit}limit="{embed:limit}"{/if}
paginate="bottom"
{if embed:orderby}orderby="{embed:orderby}"{/if}
{if embed:sort}sort="{embed:sort}"{/if}
parse="inward"
}
...
{paginate}
{pagination_links}
{/paginate}
{/exp:}


...the tag suddenly respects the offset and shows the correct results.

Is this a bug?

Replies

  1. Low 17 Jul 2014 07:17

    I think this is default EE behaviour. Try and swap the Low Search Results tag with a native Channel Entries tag, and see if you can recreate. If it happens there as well, it definitely is default EE behaviour.

  2. arvinsim 18 Jul 2014 00:50

    I tested this with Channel Entries tag and you are correct, it worked the same with that tag.

    Thanks. I will take this question to their bug tracker. I think you can close this question now.