Does anyone know the best route to make the sort by options a drop down selection? Thanks

Comments

pwolanin’s picture

Category: task » support
jpmckinney’s picture

Status: Active » Fixed

I think you would have to write a custom block to do that. You can look at the code used to implement to current sort block. The drop down would have to appear within a form pointing to search/apachesolr_search. If you want the form to submit without the user having to click a submit button, you would have to write some JS. It's not trivial, but it is doable.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

BlueBlossom’s picture

Status: Closed (fixed) » Active

has anyone done this and can you share how? I don't know how to write code and I have searched these forums for hours. I keep ending up on the drupalorg design cusomizations - but I can't find the answer there either.

Any help would be appreciate - thanks.

nick_vh’s picture

Status: Active » Closed (won't fix)

Please see apachesolr_sort module. This is not something we'd support in the main module for now

cpliakas’s picture

Project: Apachesolr Sort » Apache Solr Search
Version: 7.x-1.x-dev » 6.x-1.2
Status: Fixed » Closed (won't fix)

Not relevant to the 6.x version, but I did post a sandbox project Apache Solr Select Sort for 7.x providing this functionality. I don't plan on maintaining it any further, but would love to pass it off to someone who wants to refine it and maintain it is as a full project on D.O. I am also willing to move the functionality to the Apachesolr Sort UI module if the community thinks that is the best way forward.

Cross posting to discussion on G.D.O. at http://groups.drupal.org/node/227623

nick_vh’s picture

Project: Apache Solr Search » Apachesolr Sort
Version: 6.x-1.2 » 7.x-1.x-dev
Status: Closed (won't fix) » Active

Moving this to the Sort UI queue

nick_vh’s picture

Status: Active » Fixed

Merged in to this project

cpliakas’s picture

Cool... so just to clarify I can deprecate the Apache Solr Select Sort sandbox?

nick_vh’s picture

Yes you can :)

cpliakas’s picture

Great. Thanks!

Project: Apache Solr Search » Apachesolr Sort
Version: 6.x-1.2 » 7.x-1.x-dev
Status: Closed (won't fix) » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

cappadona’s picture

Nick, I added a new issue to let you know that your merge is missing apachesolr_sort_admin.inc.
#1665096: HEAD for 7.x-1.x-dev branch is dead in the water