View more context

 

ado

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.

ado

rule of thumb is fat models, skinny controlelrs

Paul

Hello All, Could anyone tell me why i could be getting a "Empty File Upload result" error ?

MichalKleiner

server permissions or no disk space available when uploading the file into a temp location

daniel hunter

Hi... Can someone tell me how to filter the summary table in a ModelAdmin?

Ramon Lapenta
  1. private static $searchable_fields = [
  2. 'Created',
  3. 'Status',
  4. 'Whatever',
  5. ];
👍 (1)
Ramon Lapenta

once you have that, the filters appear at the top of the page in the CMS admin

null

Not all summary fields can be filtered. They need to be members of a datalist, if I recall.

null

specifically, it needs to be a list that implements SS_Sortable, SS_Limitable or SS_Filterable

Ramon Lapenta

I didn’t do anything special to them, and I have searchable fields that are not summary fields

null

searchable_fields should be OK since it implies they're queried with a database 🙂

daniel hunter

It is a boolean value "Approved" I want the table to only show rows with a false value by default.


Show less replies