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

ManyManyComplexTableField


Reply

2 Posts   1318 Views

Avatar
corkg

20 May 2010 at 8:55pm Community Member, 30 Posts

Hi,

I am using a ManyManyComplexTableField like in the below document:
http://doc.silverstripe.org/manymanycomplextablefield?rev=1195784535
As you can see in the table or in the below image:
http://doc.silverstripe.org/_media/manymany.png?cache=&w=701&h=217
The table on shows 10 lines of data is there any way of increasing this.

Thank you.

Avatar
Bambii7

31 August 2010 at 2:04pm Community Member, 254 Posts

      $Type = new ManyManyComplexTableField (
         $this,
         'Types',
         'TypeDataObject',
         array(

         )
      );
      $Type->pageSize = 18;
      $fields->push($Type);

or if you were adding to a page

$fields->addFieldToTab('Root.Content.Type', $Type);

All complextablefield's share the pageSize variable.