Jump to:

1160 Posts in 2621 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Search returns all pages

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 1351 Views
  • Henk Poley
    30 Posts

    Search returns all pages Link to this post

    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.

  • Henk Poley
    30 Posts

    Re: Search returns all pages Link to this post

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

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.