Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » ModelAdmin Scaffolding feature

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1525 Views
  • Dig
    Community Member
    29 Posts

    ModelAdmin Scaffolding feature Link to this post

    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?


    Edit: 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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.