This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Sort order dropdown

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46304
    pbainespbaines
    Participant

    Hi, is there a way to add a sort order dropdown?

    e.g. ‘Sort by date ASC’, ‘Sort by date DESC’, similar to the sortby args in a query.

    I can see that you can set a primary and secondary order, but is it possible for the user to change the results order?

    I’d rather not try to build something custom, but I can’t see anything in the settings or knowledgebase for adding this.

    Thanks!

    #46312
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    I’m afraid that is not (yet) possible, but it had been requested before, so it will be implemented in one of the upcoming updates for sure.

    If you decide to do something custom for it, then to help you out, use the asp_query_args hook to modify the order on the server side.
    I suggest maybe injecting an additional drop-down via the asp_layout_settings_before_first_item hook. Any type of input you put in there is then available on the server side in the $_POST['options'] variable.

    #46327
    pbainespbaines
    Participant

    You cannot access this content.

    #46331
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I’m afraid I am not available for custom jobs, I am very sorry.
    It should not be too difficult, an experienced developer could handle it in a couple of hours for sure.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.