Would it be possible to add a remember filters checkbox or something similar to admin/build/views?
We're starting to get a lot of views for different purposes, using tags to organized them, but any time you start a admin/build/views navigation, the filters are lost, you have to choose them again and again. :(
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | views-335647-7.patch | 1.44 KB | markus_petrux |
| #6 | views-335647-6.patch | 1.47 KB | markus_petrux |
Comments
Comment #1
merlinofchaos commentedI agree, I've really wanted to do some more ajaxy smart stuff with this one, but it hasn't been a high priority.
Comment #2
markus_petrux commentedSweet. :) I could try to roll a patch, in a similar fashion than the one used to remind filters in views. Do you have any suggestion on how it should be done?
Comment #3
markus_petrux commentedhmm... but it would also be nice to have a "Reset" button. Here and in the filter section of normal views. Agree?
Comment #4
merlinofchaos commentedYes, with remembering a reset button would be necessary.
Comment #5
markus_petrux commentedGreat. I just checked out from HEAD and I'll try to work this out. Probably first a "Reset" button for the filter section of normal views, and then the whole thing for the views administration section. :)
Comment #6
markus_petrux commentedWell, here's a quick and simple patch that adds a "Reset" button to the views administration list. It is displayed only when there are filters already saved in user session data. Filters are stored in $_SESSION['views_admin'], and that is used to rebuild the $_GET structure when the form is being processed.
Please, Earl let me know it it covers what you expected.
The patch is against HEAD.
Comment #7
markus_petrux commentedAn alternative version of the same thing. It uses += operator to merge session data with $_GET and session data is stored in
$_SESSION['views']['#admin']rather than$_SESSION['views_admin'](reduces potential namespace conflicts).Comment #8
markus_petrux commentedJust wanted to mention that I've been trying to add a "Reset" button to the filter section of normal views and... no success, it's much more complex than what I expected because there's a dependency on just one submit button on several places. So I decided to not work on that, at least for the moment. That was not on my initial request anyway.
So the patch above just adds the ability to remind filters in views administration, and so it provides a "Reset" button there. Nothing more, nothing less, for the moment.
Comment #9
merlinofchaos commentedI love this, Markus! Thanks! Committed!