Vanishing GlobalArea content
PermalinkI have tried adding the content to the global areas from both the contextual editor by dragging and dropping a content block. I can then see the content I have created in `Stacks & Blocks>View Global Areas>Stack Name`. I have also tried by editing the `Stack` from within the `Global Areas`. Again the content is visible in the dashboard page and on the site pages but only when logged in. I have also spotted the elusive 'Approve Changes' button in the `Stacks` view and have all caching turned off. Any idea why the live site wont show this content? Where am I going wrong?

$a= GlobalArea('copyright'); $a->display();
And loading them into my theme views using $this->inc(); Also same on my localhost and on server (bitnami distro hosted on AWS in unlikely event that is relevant) making me more sure its my own inadequacies to blame..
<?php $a = new GlobalArea('copyright'); $a->display(); ?>
Where did you see your syntax?
Certainly your permissions can be too tight but only if you have adjusted them. Out of the box, c5 displays Global Areas to guests.
What version of concrete5 are you building with?
<?php $a = new GlobalArea('Copyright'); $a->display(); ?>
I have updated previous post as well for clarity.
What do permissions show on the global area / blocks in it - have you somehow removed the guest user from the view permission?
How many blocks are in the stack/global area?
What do you see when you look at the version history?
When in Edit Mode, I would add blocks to a Global Area, but when I saved/published the blocks would disappear.
Ended up being a name conflict thing with Editable Areas.
e.g. I previously had an editable Area called "Breadcrumbs" for putting my breadcrumbs auto nav into. I then realised that this should really be a Global Area, rather than editable Area, as I'd put the exact same auto nav stack in all the pages.
So I simply changed the code in my template to the Global Area code, name remained the same "Breadcrumbs". But after I did that - every time I'd add content to the Breadcrumbs Global Area it would disappear on save.
SOO I changed the name to "Bread Crumbs" and now it works.
Not sure if that is the issue you are having, but thought I'd put it out there anyway :)
I was having an identical problem and never thought about the naming conventions as I haven't had a problem with them before!
https://www.concrete5.org/community/forums/5-7-discussion/page-type-...
$pkg = parent::install(); try { // install blocks BlockTypeSet::add("client_blocks","Client Block Set Name", $pkg); BlockType::installBlockTypeFromPackage('oneblock', $pkg); BlockType::installBlockTypeFromPackage('another_block', $pkg); //add the single pages $sp = SinglePage::add('business',$pkg); $sp->setAttribute('exclude_nav', 1 ); $sp = SinglePage::add('app',$pkg); $sp->setAttribute('exclude_nav', 1 ); //add theme and apply it to the site PageTheme::add('client_theme', $pkg); $theme = PageTheme::getByHandle('client_theme'); $theme->applyToSite();
Can you enlighten me as to why you don't just build a theme and install it the 'regular' way rather than all that coding? I'm afraid of 'unintended consequences'.
Also as the theme will never be published on the market place so I am not sure the sustainable/maintainable issue is something to worry about unless you tell me otherwise (other than a good practice consideration - I would much prefer to do it properly but would rather not spend the time unless absolutely necessary)
EDIT: Assume the lastsib class is for the last list element and therefore a red herring
<li class="dynatree-lastsib"> <span class="dynatree-node dynatree-expanded dynatree-has-children dynatree-lastsib dynatree-exp-el dynatree-ico-e"><span class=" fa fa-users"></span><a class="dynatree-title" href="#">All Groups</a> </span> <ul style=""> <li class=""> <span class="dynatree-node dynatree-exp-c dynatree-ico-c"><span class="dynatree-connector"></span><span class=" fa fa-users"></span><a class="dynatree-title" href="#">Guest</a></span></li> <li class=""> <span class="dynatree-node dynatree-exp-c dynatree-ico-c dynatree-active"><span class="dynatree-connector"></span><span class=" fa fa-users"></span><a class="dynatree-title" href="#">Registered Users</a></span></li> <li class="dynatree-lastsib"> <span class="dynatree-node dynatree-lastsib dynatree-exp-cl dynatree-ico-c"><span class="dynatree-connector"></span><span class=" fa fa-users"></span><a class="dynatree-title" href="#">Administrators</a></span> </li> </ul> </li>
https://github.com/concrete5/concrete5-5.7.0/issues...
Again, I applaud your adventurous spirit but I think very few community members can help you on your journey.