getTotalBlocksInArea($c) is not working on layouts. Is this a bug?
Permalink<?php $a = new Area('Main'); if ($a->getTotalBlocksInArea($c) > 0 || $c->isEditMode()) { ?> <div class="centered"> <div class="extra-block"> <?=$a->display($c);?> </div> </div> <?php } ?>
http://www.concrete5.org/community/forums/usage/layout-makes-blocks...
im not sure if its a bug, but we should have a way of getting the area names in an area