Jump to:

1999 Posts in 1421 Topics by 613 members

Form Questions

SilverStripe Forums » Form Questions » Search Form - search a custom field

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

Page: 1
Go to End
Author Topic: 3468 Views
  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Search Form - search a custom field Link to this post

    1. The default SilverStripe search form only searches page titles and content field (as in SiteTree). How can you limit the search to only a custom field added to all page types? This would enable the site admin to define exactly what can be searched on any page.

    2. In the default SilverStripe search form you cannot search for common words and anything of length 3 characters or less. How can you remove this restriction? Following from point 1 above, the site admin may wish to define 3 character abbreviations as searchable keywords.

  • Willr
    Avatar
    Forum Moderator
    5483 Posts

    Re: Search Form - search a custom field Link to this post

    The search character limit is a MySQL issue, as for searching extra fields things like the forum have got there own custom search forms with their own querying engines.

    Search is one of the areas that is going to get some love in the future, in the mean time have alook at how the forum does its own custom one and sort of play around with that and see if you get anywhere

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Search Form - search a custom field Link to this post

    Thank you willr. I will have a look at the forum module when I get a chance and see if that helps.

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