Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $unitfield = new HasManyComplexTableField(
- $this,
- 'Units',
- 'Unit',
- array(
- 'Sessions' => '# of Sessions',
- 'Date1' => 'Starting Date'
- ),
- 'getCMSFields_forPopup'//,
- //"`Unit.MyWorkshopID` = '$this->ID' OR `Unit.MyWorkshopID` = ''"
- );
- $unitfield->setParentClass('Workshop');
- $fields->addFieldToTab( 'Root.Content.Dates', $unitfield );
Add Comment
Please, Sign In to add comment