Custom Block - view.php - How to determine if page is in edit mode in a stack?
Permalink<?php global $c; if ($c->isEditMode()) { ?> //Do something <?php } ?>
This works fine if a block is in a normal area, but not if this block is inside a stack. How do I access this method inside a stack?
Thanks in advance!
Matthias
Long time, no answer, but now I have a solution. Works for me at least.
Cheers,
Matthias
$view = View::getInstance(); if($view->controller instanceof DashboardBlocksStacksController) { echo "we're in a stack"; }
Cheers,
Matthias
I know old thrzad, but this is so great and I've been looking for it for so long. thank you thank you thank you.
global $c is empty and view::getCollectionObject() is also returning an empty result.
Concrete v5.5+