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.

General Questions /

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

Search Results Page


Reply


2 Posts   1037 Views

Avatar
Karai

Community Member, 13 Posts

24 May 2009 at 4:57pm

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..?

Avatar
Karai

Community Member, 13 Posts

24 May 2009 at 5:08pm

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