Keep track of element index filters #12590
-
What happened?The recently added element index filters are amazing and powerful but pretty fragile. Once you go through the multiple steps to create a filter there's no way to keep that filter and it's immediately lost on any navigation. Steps to reproduce
Expected behaviorUser can save the search to be reused along with other searches, or the search is temporarily stored (cookie or whatever) until another filter is setup or the active filter is cleared. Actual behaviorFilter is always lost Use caseI have a site that has thousands of entries related to many categories and makes sense to be able to filter the list to see a specific category's entries and work on many of them. Re-adding a filter each time is painful and setting up custom sources for each category is not something that can be done on the fly and would be a bad UI if it could as the list would get long. NotesBrandon mentioned on Discord that there is some intent to do this but I couldn't find any other mention on Github. I think it's kind of related to a discussion I added in that this would be a sort of workaround in some respects. Craft CMS version4.3.6 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Converted this to a discussion because it’s currently working as intended. Agree that it would be good to keep track of the active filters, though. Maybe even from a query string so the results could be shared with others (similar to the current search term – #8942). |
Beta Was this translation helpful? Give feedback.
-
The idea of "remembered" and "saved" filters is a huge selling point of a few "enterprise-y" CMSs I've come across recently. One that really stuck with an editorial team had the flow of:
From there you have two options,
All that is to say, yes, saved filters would be an amazing feature! |
Beta Was this translation helpful? Give feedback.
-
There was an earlier dicussion that was relative to this and Brandon said that savable filters are planned: #11215 (comment) No idea about a timeframe though. FWIW I also would love to see this implemented! |
Beta Was this translation helpful? Give feedback.
-
Craft 4.5.0 is out with an improvement related to this: filters are now serialized and added to the query string, so they will persist when you navigate to an entry and then press the Back button, or if you share the index page URL with a colleague. |
Beta Was this translation helpful? Give feedback.
-
Hi, I just had a very confused client telling me that the filter is lost each time. I had to advise him to command-save the entry and then use the back button of the browser to return to the filtered elements. The more optimal workflow could be that if you save an entry you'd return to the filtered list. In fact the element index should always keep the filter unless you decide to delete it (on a user basis). |
Beta Was this translation helpful? Give feedback.
Craft 4.5.0 is out with an improvement related to this: filters are now serialized and added to the query string, so they will persist when you navigate to an entry and then press the Back button, or if you share the index page URL with a colleague.