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.

Form Questions /

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

SearchForm - Set the page length

Go to End

2 Posts   1779 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, 1891 Posts

9 February 2011 at 9:38am

in Page.php...

function init() {
//towards the end

i think