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.

Form Questions /

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

Search Form - search a custom field

Go to End

3 Posts   4081 Views

Amir Mostofi

Community Member, 59 Posts

20 March 2009 at 2:31pm

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.


Forum Moderator, 5523 Posts

21 March 2009 at 11:30pm

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

Community Member, 59 Posts

21 March 2009 at 11:40pm

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