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

Support archive

orderby_sort does not work as filter

Aaron Krug 16 Jan 2015 18:29 question, complete

I have two links one that is Date and the other that is Title. This is on an archive page of stories. I want to be able to set it up so that the Title link when clicked on it will sort the stories by their title in desc order and click again it goes back to default. Same with the Date link but this will be Asc inside when clicked on.

I tried to use the filter with the {exp:low_search:url toggle:orderby_sort="date|asc"} but each time I click the link it just keeps adding date|asc to the url parameter.

Replies

  1. Low 16 Jan 2015 18:38

    Hmm, I think you'll need to use conditionals here (when using inside the Filter) tag. For example:

    {if low_search_orderby_sort == 'date|asc'} 
    {low_search:url orderby_sort=""}
    {/if}


    ...and so on.