Jump to:

23355 Posts in 17838 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Custom Search

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: 2467 Views
  • Alan Tucker
    Avatar
    Community Member
    5 Posts

    Custom Search Link to this post

    I have extended a cms page with four fields and finding its difficult to create a custom search which only searches these fields. Does any have any ideas or examples of a simple and easy implementation of a custom search?

    Thanks in advance

    Alan

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Custom Search Link to this post

  • klikhier
    Avatar
    Community Member
    150 Posts

    Re: Custom Search Link to this post

    With regards to http://doc.silverstripe.org/doku.php?id=searchcontext:

    Is there a way to set up SearchContext to search through more than one attribute, but WITHOUT creating a search field for every searchable attribute in the searchform. I would like to have just one search form input field that searches through 3 attributes using the SearchContext functionality.

    Happy to hear!

  • robinp
    Avatar
    Community Member
    33 Posts

    Re: Custom Search Link to this post

    Hi klikhier,

    Just wondering if you figured this out ?

    Cheers

    Robin

  • klikhier
    Avatar
    Community Member
    150 Posts

    Re: Custom Search Link to this post

    Nope, unfortunately...

  • robinp
    Avatar
    Community Member
    33 Posts

    Re: Custom Search Link to this post

    Hi,

    Actually thought more about what I'm trying to do and what you might want to do as well and I think more standard DataObject search is the way to go. SearchContext is easy but doesn't seem that flexible

    Cheers

    Robin

    2467 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.