No Layouts in GlobalArea - What's the work around?

Permalink
I understand this is being worked on, if not already fixed in v8

But for now, I'd like to put various blocks into bootstrap3 columns in my Sitewide header and footer areas. How should I approach this?

Thanks.

Conkreet
 
mesuva replied on at Permalink Reply
mesuva
We've found that this can work as a workaround:
<?php 
$collectionc = $c->getCollectionID();
if ($collectionc == 1) { 
    $collectionc = $c;
} else {
    $collectionc = Page::getByID(1,'ACTIVE');
}
$area = new Area('Global Footer');
$area->display($collectionc);
?>

(it's perhaps a little sloppy, but it should work)

What this does is use the home page as the spot to store the area. This allows layouts to be added, with the only caveat that you have to visit the home page to edit the contents - not the biggest issue in my opinion.
Conkreet replied on at Permalink Reply
Conkreet
Very interesting, thank you.

I think I need to experiment!