Hi
I need to find a way programatically to tell if an area has Layout. For example I can get the area blocks like this:
``$blocks = $area->getAreaBlocksArray($page);`
But I also need to work out if the area has layout set on it too?
Thanks
Dave
Hi
I need to find a way programatically to tell if an area has Layout. For example I can get the area blocks like this:
``$blocks = $area->getAreaBlocksArray($page);`
But I also need to work out if the area has layout set on it too?
Thanks
Dave
Behind the scenes, layout is a block, so you can loop through the blocks and check the block type handle.
You could also build a SQL query to do the same directly on the database, but that would only be worthwhile if you wanted to build a list of pages/areas/layouts.
Thanks John, you are of course correct, my issue seems to be something else.