ModelAdmin filter resets itself
Asked Answered
P

1

6

Is there a way to make ModelAdmin filters more persistent? Currently if you filter, edit a DataObject and come back, the filter is gone. Also prev/next from unclecheese/betterbuttons do not respect the filter. It jumps to the next Object but not necessarily one of the filtered Objects. I think there was a module for 2.4 called RemodelAdmin that did some of this, but since now all is GridFiled based, this seams like something completely different. Has anybody done some work in this direction for SilverStripe >3 or some hint how to achieve this?

Peroration answered 26/2, 2015 at 15:23 Comment(2)
this has been bugging me for a long time too, see this 3 years old ticket where the issue was first documented: open.silverstripe.org/ticket/7642. there seems to be part of a solution in a pull request here: github.com/silverstripe/silverstripe-framework/pull/3542Handbill
That's an old issue, I was speking about it with Unclecheese 1 year ago: github.com/unclecheese/silverstripe-gridfield-betterbuttons/…Federicofedirko
R
0

I believe you should remove the module better buttons to get the filter to still be present upon selection of "back" or browser back action.

Rodolforodolph answered 22/11, 2015 at 12:35 Comment(1)
whoot - can it be that simple? Whit what version of SilverStripe is this behavior given? Honestly GF without better-button feels like a different pain rather than a solution :) I just saw two modules which both could solve the issue github.com/Little-Giant/silverstripe-persistentgridfield github.com/Tom-Alexander/silverstripe-griddlePeroration

© 2022 - 2024 — McMap. All rights reserved.