Blocks in global area not visible
Permalink
So, I've defined two global areas which work fine during edit mode ( can add blocks etc. ). After publishing though, the blocks don't get added to the DOM. If I change them back to regular areas, all of the blocks show up.
I've done this with cache cleared and turned completely off etc.
After googling I've found similar issues but they've usually been related to permissions (guests not seeing global areas). I was logged in as the admin the whole time.
Not completely sure if this is a bug yet (maybe I'm doing something wrong), so I'll post here first and add a bug report later if needed.
I've done this with cache cleared and turned completely off etc.
After googling I've found similar issues but they've usually been related to permissions (guests not seeing global areas). I was logged in as the admin the whole time.
Not completely sure if this is a bug yet (maybe I'm doing something wrong), so I'll post here first and add a bug report later if needed.
Also, here's a video of the problem in action.
Try changing the name of the global area. There are some reserved words. For example, this doesn't work:
but this does:
<?php $a = new GlobalArea('Navigation'); $a->display($c); ?>
but this does:
<?php $a = new GlobalArea('Top navigation'); $a->display($c); ?>