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.

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