Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have ten views on one page (I have used panels to output this page). When I am changing a sort criteria by exposed filter in one area it is ok but when i am changing sort criteria in another view on the same page, first view is sorting by the second view sorting criteria...
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThere appears to be no way to changed the exposed sort identifier which would allow these views to work more or less independently.
That said, with that many views on the page, you probably would rather use AJAX (turn on the ajax setting). Even if you do get this working, the forms won't affect each other; so when you change one view, the other will revert to their default values.
10 views per page is a LOT. It's going to be a very slow page without caching, and it's going to be a very *busy* page for users.
Comment #2
MStrzelecki_ CreditAttribution: MStrzelecki_ commentedI have got AJAX on already. But, view which was used (without page reload) fallows sorting criteria another view.
Comment #3
MStrzelecki_ CreditAttribution: MStrzelecki_ commentedplz add exposed sort identifier to 3.0 final :)
Comment #4
bib_boy CreditAttribution: bib_boy commentedyes, i spent ages wondering what was wrong until I read this. I have 2 views with exposed filters in a panel pane and when I filter on the bottom view the top view displays the default as you suggest. Unfortunately the default is the 'Any' option so i end up with multiple results for the top view which the user did not filter on. So it becomes confusing for the user if they are filtering on the view below and get a load of results for the one above.
would a single view with two displays work any better? Or can I set the default to 'no result' and if so how?
Also, I initially tried the above using 'Exposed Form' setting with 'Input required' and it made the bottom view not work at all. The Exposed form 'Basic' seems to work as you suggest, but I get all the results on page load, and I'd rather have it as showing no results on page load.
any ideas of a way forward for any of these issues?
Comment #5
couturier CreditAttribution: couturier commentedI'd have to agree with #1 - when you have more than one View on a page, the page can be so busy for users, plus it slows down your page load, and that is very bad for SEO. Simplify is sometimes a very good option. I've had to give up lots of features thought I wanted when I first started building my site, and now I'm happy with the simplicity of it, plus I have really fast page loads and great SEO.
Comment #6
xandeadx CreditAttribution: xandeadx commentedComment #7
albabosh CreditAttribution: albabosh commentedThis is really a 'must have' option when it comes to Services Views REST API.