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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1645 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.