src/controllers/MediaHolderController.php
public function index() {

		// Use a custom media type holder template if one exists.

		$type = $this->data()->MediaType();
		$templates = array();
		if($type->exists()) {
			$templates[] = 'MediaHolder_' . str_replace(' ', '', $type->Title);
		}
		$templates[] = 'MediaHolder';
		$templates[] = 'Page';
		$this->extend('updateTemplates', $templates);
		return $this->renderWith($templates);
	}
public function index() {

		// Use a custom media type holder template if one exists.

		$type = $this->data()->MediaType();
		$templates = array();
		if($type->exists()) {
			$templates[] = 'MediaHolder_' . str_replace(' ', '', $type->Title);
		}
		$templates[] = 'MediaHolder';
		$templates[] = 'Page';
		$this->extend('updateTemplates', $templates);
		return $this->renderWith($templates);
	}
public function index ( ) { // Use a custom media type holder template if one exists. $ type = $ this -> data ( ) -> MediaType ( ) ; $ templates = array ( ) ; if ( $ type -> exists ( ) ) { $ templates [ ] = 'MediaHolder_' . str_replace ( ' ' , '' , $ type -> Title ) ; } $ templates [ ] = 'MediaHolder' ; $ templates [ ] = 'Page' ; $ this -> extend ( 'updateTemplates' , $ templates ) ; return $ this -> renderWith ( $ templates ) ; }
Determine the template for this media holder.
Determine the template for this media holder .