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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Search Results Page


Go to End


2 Posts   1277 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.