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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1061 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, 1899 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