Jump to:

23007 Posts in 11866 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Search Results Page

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 963 Views
  • Karai
    Avatar
    Community Member
    13 Posts

    Search Results Page Link to this post

    Hey,

    I am using the default search functions in Page.php. I created a results page using the Page type, but when I submit the form, it is supposed to render the Page_results.ss instead of Page.ss.

    return $this->customise($data)->renderWith(array('Page_results', 'Page'));

    ...But it's not. It's just using Page.ss. Do I need to create a new Page type for the results page, or should it work the way I am assuming it should work..?

  • Karai
    Avatar
    Community Member
    13 Posts

    Re: Search Results Page Link to this post

    Disregard this, I'm an idiot. i was pointing my custom form to /results instead of /results/SearchForm.

    963 Views
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.