suddeny I can’t save/publish on my local 😕
thanks @kinglozzer i've come from Rails, where refactoring out business logic was king. Rails has a concept of helpers, which lets you abstract business specific template logic.
rule of thumb is fat models, skinny controlelrs
@Paul has joined the channel
Hello All, Could anyone tell me why i could be getting a "Empty File Upload result" error ?
server permissions or no disk space available when uploading the file into a temp location
Hi... Can someone tell me how to filter the summary table in a ModelAdmin?
You can add searchable fields to your model
- private static $searchable_fields = [
once you have that, the filters appear at the top of the page in the CMS admin
Not all summary fields can be filtered. They need to be members of a datalist, if I recall.
ok.. I will try this. thanks @Ramon Lapenta
specifically, it needs to be a list that implements SS_Sortable, SS_Limitable or SS_Filterable
I didn’t do anything special to them, and I have searchable fields that are not summary fields
searchable_fields should be OK since it implies they're queried with a database 🙂
Yeah, I think so
@Ramon Lapenta Can I apply a filter by default?
It is a boolean value "Approved" I want the table to only show rows with a false value by default.
Haven’t tried that
Try it, if it breaks, undo it 😄
what is a summary table in a ModelAdmin?
You mean the table in a ModelAdmin?