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.

Customising the CMS /

Tablefield Pagenation


Reply


3 Posts   1093 Views

Avatar
Mo

Community Member, 510 Posts

25 June 2009 at 10:03pm

Hi all,

Sorry if this has been asked before, but I couldn't find any previous instances.

I was wondering if it was possible to increase the number of items listed in table fields, complex table fields, many many table fields etc. By default its 10 a page, but I would prefer 15 or 20 for a site I am working on.

Cheers,

Mo

Avatar
SilverRay

Community Member, 167 Posts

25 June 2009 at 10:55pm

$YourTablefield->setPageSize(100);

See:

http://doc.silverstripe.com/doku.php?id=tablelistfield&s=setpagesize

Avatar
Mo

Community Member, 510 Posts

25 June 2009 at 11:29pm

I have no idea how I managed to miss that, doh!

Thanks a lot, now working great!

Mo