Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Extending LeftAndMain

Go to End

2 Posts   924 Views


Community Member, 56 Posts

20 September 2010 at 6:18am


I was extending LeftAndMain for a general search function that I am implementing. And for this feature, I also extended ComplexTableField. I also created a function that overrides the searchable_fields and summary_fields of the DataObject where I was implementing the general search functionality. Everything was good except for that when my DataObject has a has_many relationship to a certain Object, it can't match the entered filter even a record with a matching property exist. Am I missing something? Enlighthen me on this one. Thanks! :)


Forum Moderator, 1849 Posts

1 October 2010 at 11:36pm

You can add custom where clauses to the search in ModelAdmin in this way...

Hope this helps