feature request: make the block usable, if called via PHP
Permalink
I tried to use the block with the following code:
This does not work, because the output of the block (view.php) needs a "bID" (which is not given, if called this way).
Next thing is, that "on_page_view" can not be called, because of the missing "bID".
$azi = BlockType::getByHandle('zoom_image'); $azi->controller->thumbnailWidth = 400; $azi->controller->thumbnailHeight = 135; $azi->controller->fID = 123; $azi->render('view');
This does not work, because the output of the block (view.php) needs a "bID" (which is not given, if called this way).
Next thing is, that "on_page_view" can not be called, because of the missing "bID".