Hi that gives me some idea : I a mtryuing to customize the type of gallery being showed
I have added a dropdown field in your FilePage :
static $db = array("CustomTheme" => "Varchar");
...
$options = array("SimpleGallery"=>"SimpleGallery", "SlideGallery" =>"SlideGallery");
$fields->addFieldToTab("Root.Content.Main",
new DropdownField("CustomTheme", "CustomTheme", $options));
and I try to use the controller to change the Layout (Layout/SimpleGallery.ss or Layout/SlideGallery.ss) WHILE KEEPING the main theme
[edit] this solution seems to work here :
class FilePage_Controller extends Page_Controller {
function index() {
$custom = $this->customise(array(
"Content" => $this->customise( )->renderWith($this->CustomTheme)
));
return $custom->renderWith('Page');
}
}