Here's the code snippet.
That's the documentation I used for implementing this.
However, I'm unable to edit the ones which are not available in the default filtered list from
Using the filters I'm then able to see all the items for this DataObject class.
Hi, I have a ModelAdmin which manages a bunch of DataObjects. For one of the DataObjects, I'm updated the
getList() function on the Model Admin to show a filtered list by default.
Hi, can I have two tabs for the same DataObject in the ModelAdmin? something like:
- private static $managed_models = array(
- 'Nomination' => ['title' => 'Active Nominations'], // Should show 'Nomination's with Status = 'Active'
- 'Nomination' => ['title' => 'Previous Nominations'], // Should show 'Nomination's with Status != 'Active'
Unfortunately I'm replying from my phone while cooking. So your zip file will have to wait.