Jump to:

23013 Posts in 11540 Topics by 2825 members

General Questions

SilverStripe Forums » General Questions » Extending LeftAndMain

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

Page: 1
Go to End
Author Topic: 717 Views
  • cuSSter
    Avatar
    Community Member
    56 Posts

    Extending LeftAndMain Link to this post

    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!

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Extending LeftAndMain Link to this post

    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

    717 Views
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.