0

I've got a Drupal view that contains a jumplist of items filtered by taxonomy (which is pulled from the current page URL).

The problem is that I need this jumplist to work without a page reload (so using AJAX).

I've tried a few different things and done a lot of Googling, but come up with nothing.

I've read that you can expose filters to users and use this for Ajax filtering, the problem with this seems to be that you can't populate a select element with values from the database when using a filter, it looks like the filter values have to be hard coded or user defined, so this looks like a no go.

Is there any way of accomplishing this? Or am I going about this in the wrong way?

8
  • How is your view set up right now? Are you using contextual filters?
    – sareed
    Jan 6 '15 at 14:27
  • I am to set the taxonomy yes.
    – Sean
    Jan 6 '15 at 14:28
  • Ok, so you are getting the tax term from the URL which is populating the jumplist. Then the user can change the tax term to repopulate the jumplist?
    – sareed
    Jan 6 '15 at 14:41
  • Sorry, yes, that's correct!
    – Sean
    Jan 6 '15 at 16:31
  • Hmm, right now I have a view set up as a Jump menu with an exposed filter (Content: Has taxonomy term(exposed)) with Ajax and a tax ID contextual filter and it works fine. Perhaps you can share a screen shot?
    – sareed
    Jan 6 '15 at 17:15
0

I am not 100% on your desired set up but there are a couple of ways that I can think of to get the functionality that I believe you want. If you have a view with filters and displays that also includes a jumplist (the jumplist is just a part of your desired view) I would suggest adding an attachment to your view. This attachment can share contextual and exposed filters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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