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, biapar, Willr, Ingo, swaiba, simon_w

Extending LeftAndMain


Reply


2 Posts   829 Views

Avatar
cuSSter

Community Member, 56 Posts

20 September 2010 at 6:18am

Hi,

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! :)

Avatar
swaiba

Forum Moderator, 1805 Posts

1 October 2010 at 11:36pm

You can add custom where clauses to the search in ModelAdmin in this way... http://www.silverstripe.org/general-questions/show/255859?start=16

Hope this helps