1

I have a taxonomy term page that lists certain nodes. I would like to include custom sort options like the one on amazon's search results page, at the top. It is a drop down with sort options, unlike the usual clicking on a table column. I have searched but found no resources on implementing this in drupal. Any ideas on how I can implement this? Thx

1 Answer 1

1

The most easy way to get this taken care of is use the Views module. Set up a view that queries for nodes based on the term as an argument. This will give you what you already have, however, it will also allow you to use exposed filters to get more granular with the results based on the values of the exposed fields.

If you would like to learn more about exposed filteds and views, check out this video, which is not the best video in the world, but highlights using exposed filters in Views, which should hopefully get you on the right track.

As a summary, what your doing is replacing Drupal's built in taxonomy view pages with a view instead and allowing views to handle the querying and filtration of the data respectively.

Happy Programming!

1
  • Hmm....I understand the view part, but how do I hook these views up to a drop down list. And is it possible to ajaxify the requests?
    – sotn
    Apr 4, 2012 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.