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, Ed, biapar, Willr, Ingo, swaiba

Search returns all pages

Go to End

2 Posts   1754 Views

Henk Poley

30 Posts

30 March 2009 at 11:23am

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

30 Posts

31 March 2009 at 3:15am

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">