1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
        $manager = new ImageDataObjectManager(
			$this, // Controller
			'ProductIntroductionVideos', // Source name
			'ProductIntroductionVideo', // Source class
			'IntroductionVideoThumbnail', // File name on DataObject
			array(
				'TooltipThumbnail' => 'Video Thumbnail'
			), // Headings 
			'getCMSFields_forPopup' // Detail fields (function name or FieldSet object)
			// Filter clause
			// Sort clause
			// Join clause
		);
		$manager->setAddTitle( 'A Video' );
		$manager->allowUploadFolderSelection = false;
		$manager->setUploadFolder('ProductIntroductionVideo');
		// In grid view, what field will appear underneath the icon. If left out, it defaults to the file title.
		$manager->setGridLabelField('VideoName');
		
		$fields->addFieldToTab("Root.Content.IntroductionVideo", $manager);