public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $this->makeRecordViewer($fields, "Articles", $this->Articles());
     $this->makeRecordViewer($fields, "Images", $this->Images());
     return $fields;
 }
 public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     // Show relations
     /*$this->makeRecordViewer($fields, "Tags", $this->Tags());
     		$this->makeRecordViewer($fields, "Images", $this->ImageGallery());
     		
     		// Display a thumbnail of the hero image
     		if ($this->HeroImage()) {
     			$heroField = new LiteralField (
     				"HeroImage",
     				$this->HeroImage()->getThumbnail()
     			);
     			$fields->replaceField('HeroImageID', $heroField);
     		} else {
     			$fields->removeByName('HeroImageID');
     		}*/
     return $fields;
 }
 public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     return $fields;
 }
 public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     // Display relations
     $this->makeRecordViewer($fields, "Tags", $this->Tags());
     $this->makeRecordViewer($fields, "Articles", $this->Articles());
     // Hide all those URL
     $fields->removeByName('Url150Square');
     $fields->removeByName('Url500');
     $fields->removeByName('Url500Square');
     $fields->removeByName('Url1000');
     $fields->removeByName('Url1000Square');
     $fields->removeByName('Url2000');
     $fields->removeByName('Urloriginal');
     $fields->removeByName('FaceCentreX');
     $fields->removeByName('FaceCentreY');
     // Display a thumbnail
     $heroField = new LiteralField("Thumbnail", $this->getThumbnail());
     $fields->addFieldToTab('Root.Main', $heroField);
     return $fields;
 }