How to get block data?
Permalink
I'm currently working on a theme template. For example I have an "article" template, and within that template I need to access the data of the block "volume".
I know that I can get lots of the collection data with:
But my block's data doesn't appear in that $pobj. How do I get the volume?
I know that I can get lots of the collection data with:
$pobj = Page::getCurrentPage();
But my block's data doesn't appear in that $pobj. How do I get the volume?
However, each Area has some knowledge of the blocks it contains, so that's the direction to head in.http://www.concrete5.org/documentation/developers/pages/areas...
You might want to look at code in packages that access page areas, like the Global Areas block:http://www.concrete5.org/marketplace/addons/global-areas/...
Good luck!