Override a block view route

Permalink
By default, when a block is viewed it loads the view.php file within the blocks directory. But what if I wanted to load a different file instead? For example, if in my form.php file I had a setting for different layouts, how could I tell the view to load a different view file instead of the default? Is that even possible yet?

ob7dev
 
Gondwana replied on at Permalink Reply
Gondwana
I note there's
$area->getAreaLayouts($page);
I'm not sure what it gets you, though.
ob7dev replied on at Permalink Reply
ob7dev
Well not quite. Basically what I'm thinking of is like a page template for a block. So that I can have a setting in my block that would change what file actually gets loaded as the view.php. I'd like to rather make a folder called views and within it have default.php as the normal view.php, then add more files that I could set the controller to load based on what the user selected in the blocks form.php.
jakobfuchs replied on at Permalink Best Answer Reply
jakobfuchs
Not sure if I miss something here, but you can easily create custom templates for block views:http://documentation.concrete5.org/developers/working-with-blocks/w...
ob7dev replied on at Permalink Reply
ob7dev
I think thats what I'm looking for.