17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1388 Views |
-
ModelAdmin Scaffolding feature

9 September 2008 at 11:30am Last edited: 9 September 2008 11:32am
First of all this is a great feature and its saved me a lot of time now I've finally got the hang of most of it. There is one problem I've encountered, as the $searchable_fields are defined in a static array I can't pass contructor parameters to fields like dropdowns etc. I'd like dropdown options in the search for filtering on has_one data.
I made my own class that just hardcoded the arguments I needed but its not that successful and seems to go against the simplicity of the scaffolding system.
In other areas like getCMSFields I can use TypeDropdown to so this, but it requires parameters in order to work (obviously).
Is there any current elegant solution to using dropdowns in the searches?
Cheers,
NickEdit: While I'm at it is there a simple way to choose which columns are initially checked for search results, one of my DataObjects is also a page type and has loads of extraneous information I'd rather not bother showing
Cheers again
Nick
| 1388 Views | ||
|
Page:
1
|
Go to Top |

