Getting the name of a stack in an area
Permalink
Is it possible to get the name of a stack that is in a page area? I need to count the number of blocks in the stack, but don't know the name of the stack or I'd do this:
$s = Stack::getByName('THE STACK NAME');
$blocks = $s->getBlocks(STACKS_AREA_NAME);
Thanks!
$s = Stack::getByName('THE STACK NAME');
$blocks = $s->getBlocks(STACKS_AREA_NAME);
Thanks!