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:

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

[RESOLVED] ManyManyComplexTableField - CMS - display more than 10 records at a time


Go to End


4 Posts   1360 Views

Avatar
gregsaunders

Community Member, 12 Posts

18 June 2011 at 4:31pm

Edited: 18/06/2011 4:31pm

Hi! I have a page that has a many to many relationship with another object. I have that additional object wired into the CMS nicely associated with the parent page. But how do I control the number of records in the associated record set?

It only displays 10 at a time ...

Thanks!
Greg

Avatar
gregsaunders

Community Member, 12 Posts

18 June 2011 at 5:08pm

so I'm thinking it must have something to do with

Class: ManyManyComplexTableField

getQuery( )

http://api.silverstripe.org/2.4/forms/fields-relational/ManyManyComplexTableField.html#methodgetQuery

but I don't know how to use it on the CMS side.

Avatar
ajshort

Community Member, 244 Posts

18 June 2011 at 6:09pm

$table->setPageSize(n)

Avatar
gregsaunders

Community Member, 12 Posts

19 June 2011 at 2:51am

Thanks! That did the trick.