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.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

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

Search returns all pages


2 Posts   1385 Views

Henk Poley

30 March 2009 at 11:23am 30 Posts

Go to:

Enter anything you want in the searchbox at the right, you will get all pages as a result.

If anybody has a clue what causes this, I'd like to know and patch it.

Henk Poley

31 March 2009 at 3:15am 30 Posts

A little template change was needed to get the search query to search engine. Might be something common with 2.2.x->2.3.x, so here's the diff:

Index: trunk/frontpage-silverstripe/themes/waterscouting/templates/
--- trunk/frontpage-silverstripe/themes/waterscouting/templates/ (revision 1435)
+++ trunk/frontpage-silverstripe/themes/waterscouting/templates/ (revision 1584)
@@ -2,5 +2,5 @@
<label for="SearchForm_SearchForm_Search">Zoekterm</label>
- <input type="text" name="SearchForm_SearchForm_Search" id="SearchForm_SearchForm_Search" value="">
+ <input type="text" name="Search" id="SearchForm_SearchForm_Search" value="">
<input type="submit" name="SearchForm_SearchForm_action_results" id="SearchForm_SearchForm_action_results" value="Ga">