Jump to:

2012 Posts in 1438 Topics by 621 members

Form Questions

SilverStripe Forums » Form Questions » SearchForm - Set the page length

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

Page: 1
Go to End
Author Topic: 1267 Views
  • Monty
    Community Member
    19 Posts

    SearchForm - Set the page length Link to this post

    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.


  • swaiba
    Forum Moderator
    1796 Posts

    Re: SearchForm - Set the page length Link to this post

    in Page.php...

    function init() {
    //towards the end

    i think

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.