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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2171 Views

Avatar
Henk Poley

30 Posts

30 March 2009 at 11:23am

Go to: http://frontpage.waterscouting.com/

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.

Avatar
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/SearchForm.ss
===================================================================
--- trunk/frontpage-silverstripe/themes/waterscouting/templates/SearchForm.ss (revision 1435)
+++ trunk/frontpage-silverstripe/themes/waterscouting/templates/SearchForm.ss (revision 1584)
@@ -2,5 +2,5 @@
   <fieldset>
     <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">
   </fieldset>