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:

Form Questions /

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

SearchForm - Set the page length

Go to End

2 Posts   1865 Views


Community Member, 19 Posts

6 February 2011 at 6:52pm

Hi all.

Quick question - In the SilverStripe book it says you can adjust the number of results the search form returns. By default it is 10. It says to use the method SearchForm->setPageLength().

So how would I do this exactly. Thanks for your time.



Forum Moderator, 1899 Posts

9 February 2011 at 9:38am

in Page.php...

function init() {
//towards the end

i think