Global Logo Area not Global
Permalink
Hello.
I am trying to add an HTML block to the Logo Area and have it appear on every page in the site.
When I edit this area I get a warning telling me that it will affect every page on the site and that is what I want but it doesn't happen.
It only shows up on the Home page which is the Left Sidebar Type.
My About Page for example is also the Left Sidebar type.
When I put the About page into edit mode the Logo shows up. When I hit publish to exit edit mode the content is there. As soon as I Navigate away and back again the content is gone from the About page.
I know about Clear Cache have used it about a million times now but it does not solve this problem. I have refreshed the browser about a million and six times.
I have tried creating a new stack called Logo2 with my html block and inserting it on the home page.
I have tried inserting it on the default page type for Left Sidebar.
Here when I click to add to children I get an error. Presumably because it is a global area?
I tried editing the preexisting stack called Logo.
I have tried adding the block to each page individually.
Nothing is working.
Can someone please explain to me how to add a block to the global Logo area and have it actually be global?
It would be nice to be able to do it from the front end but I'm not opposed to editing some code if needed. If so please explain clearly in which folder I will find the file to be edited since I am having trouble locating the correct file to edit when I read some of the posts on this forum. Still trying to get my head around this PHP stuff.
Using the Axis Theme.
I am coming from WP background but mainly I just used ready made themes. I know basic HTML but that's about it. Stating to play with JS. I am not a for hire developer just an IT guy at a small company who was asked to create a new internal website.
I can tell I am going to love working with C5 once I get past the initial learning curve but right now it is quite frustrating.
Thanks
James
I am trying to add an HTML block to the Logo Area and have it appear on every page in the site.
When I edit this area I get a warning telling me that it will affect every page on the site and that is what I want but it doesn't happen.
It only shows up on the Home page which is the Left Sidebar Type.
My About Page for example is also the Left Sidebar type.
When I put the About page into edit mode the Logo shows up. When I hit publish to exit edit mode the content is there. As soon as I Navigate away and back again the content is gone from the About page.
I know about Clear Cache have used it about a million times now but it does not solve this problem. I have refreshed the browser about a million and six times.
I have tried creating a new stack called Logo2 with my html block and inserting it on the home page.
I have tried inserting it on the default page type for Left Sidebar.
Here when I click to add to children I get an error. Presumably because it is a global area?
I tried editing the preexisting stack called Logo.
I have tried adding the block to each page individually.
Nothing is working.
Can someone please explain to me how to add a block to the global Logo area and have it actually be global?
It would be nice to be able to do it from the front end but I'm not opposed to editing some code if needed. If so please explain clearly in which folder I will find the file to be edited since I am having trouble locating the correct file to edit when I read some of the posts on this forum. Still trying to get my head around this PHP stuff.
Using the Axis Theme.
I am coming from WP background but mainly I just used ready made themes. I know basic HTML but that's about it. Stating to play with JS. I am not a for hire developer just an IT guy at a small company who was asked to create a new internal website.
I can tell I am going to love working with C5 once I get past the initial learning curve but right now it is quite frustrating.
Thanks
James
Job, thanks for your reply.
I just tried going to Stacks | and under Global Areas I added my html block to the Logo stack. I got my content on my Homepage only with none of the style I added including the background image.
I tried this earlier but figured I'd try again to be sure. If I use a new stack that I created and called Logo2 I do get my style added but again it only shows up on the Homepage.
If I place any page into edit mode I do see my content with style applied.
I get the same result if I edit directly on the Homepage. My stack Logo2 gives me the style added. If I just add a block to the "Supposedly" Global Logo area I get content but no style and again it only shows on the home page. If I try to add a block or stack to each individual page it feels like it's working as I go through but when I navigate back to a page the content is gone except for the homepage.
If I use the Page Types method and edit the Left Sidebar I get the same results as above. If I try to "Setup on Child Pages" I get the following error:
Fatal error: Call to a member function getBlockCollectionObject() on a non-object in /home2/rhsinfoc/public_html/concrete/models/permissions.php on line 373 I'm guessing this is a clue to the problem but I don't know where to go from there.
I went to that file and line mentioned but if anything is wrong there I have no idea. Here is the line it is referring to:
Of course just because the error message is referencing that line doesn't necessarily mean that is where the problem lies.
I found a couple of posts that mentioned commenting out a line or two here and there in block.php and collection.php but neither solution worked for me. It didn't seem to break anything but didn't fix it either.
After testing I put things back the way they were.
I would love to mark this as the answer but unfortunately your suggestions have not solved my problem.
I think this as a bug either in C5 or the Theme I am using Axis.
Thanks for your time and if you have any other suggestions please let me know.
James
I just tried going to Stacks | and under Global Areas I added my html block to the Logo stack. I got my content on my Homepage only with none of the style I added including the background image.
I tried this earlier but figured I'd try again to be sure. If I use a new stack that I created and called Logo2 I do get my style added but again it only shows up on the Homepage.
If I place any page into edit mode I do see my content with style applied.
I get the same result if I edit directly on the Homepage. My stack Logo2 gives me the style added. If I just add a block to the "Supposedly" Global Logo area I get content but no style and again it only shows on the home page. If I try to add a block or stack to each individual page it feels like it's working as I go through but when I navigate back to a page the content is gone except for the homepage.
If I use the Page Types method and edit the Left Sidebar I get the same results as above. If I try to "Setup on Child Pages" I get the following error:
Fatal error: Call to a member function getBlockCollectionObject() on a non-object in /home2/rhsinfoc/public_html/concrete/models/permissions.php on line 373 I'm guessing this is a clue to the problem but I don't know where to go from there.
I went to that file and line mentioned but if anything is wrong there I have no idea. Here is the line it is referring to:
$c = (is_a($oObj, 'Area')) ? $oObj->getAreaCollectionObject() : $oObj->getBlockCollectionObject();
Of course just because the error message is referencing that line doesn't necessarily mean that is where the problem lies.
I found a couple of posts that mentioned commenting out a line or two here and there in block.php and collection.php but neither solution worked for me. It didn't seem to break anything but didn't fix it either.
After testing I put things back the way they were.
I would love to mark this as the answer but unfortunately your suggestions have not solved my problem.
I think this as a bug either in C5 or the Theme I am using Axis.
Thanks for your time and if you have any other suggestions please let me know.
James
Hi James
That error refers to an error in your block code in my experience? Have you written any custom blocks or used advanced permissions?
Cheers,
Job.
That error refers to an error in your block code in my experience? Have you written any custom blocks or used advanced permissions?
Cheers,
Job.
Hi Job.
I have not yet messed with permissions. This is a brand new site that will be an internal company site so eventually I will need to set permissions for various users.
I have not written any custom blocks but I was trying to use the built it HTML Block. I originally tried to use some JS in it but it would not save, it would just hang. I eventually moved the JS to the JS folder and I did get the JS to work but only on the Home Page using the Axis Theme. I tried to make some changes to the JS to get it to work on all pages and I managed to get myself locked out of the site. All I had was a page with the JS created content and nothing else. Tried a datbase restore but it still didn't get me back in even though the JS file was visibly not there in the FTP.
Finally had to Nuke the site and start over.
So for now I am woring with the default Plain Yogurt Theme.
I added my HTML block again. This time I get my HTML content on all pages but the background image still won't work no matter where I go to insert it. In Edit mode if I click to edit the block then just hit save without changing anything the image will appear but when I hit Publish it is not there.
This has been extremely frustrating and has effectively prevented me from moving forward with my project.It has cost me many hours and many dents in my desktop that resemble my forehead.
I did eventually find a post that indicates that there is indeed a bug involving background images on global areas and that it will be fixed in the 5.6 release due at the end of the month.
I guess I will put this project on hold until then. I believe that there is also a bug in the update process in the current 5.5.2.1 version so I guess I will just Nuke the site once again and start over with 5.6 once it is available at my hosting provider.
Thanks for trying to help.
James
I have not yet messed with permissions. This is a brand new site that will be an internal company site so eventually I will need to set permissions for various users.
I have not written any custom blocks but I was trying to use the built it HTML Block. I originally tried to use some JS in it but it would not save, it would just hang. I eventually moved the JS to the JS folder and I did get the JS to work but only on the Home Page using the Axis Theme. I tried to make some changes to the JS to get it to work on all pages and I managed to get myself locked out of the site. All I had was a page with the JS created content and nothing else. Tried a datbase restore but it still didn't get me back in even though the JS file was visibly not there in the FTP.
Finally had to Nuke the site and start over.
So for now I am woring with the default Plain Yogurt Theme.
I added my HTML block again. This time I get my HTML content on all pages but the background image still won't work no matter where I go to insert it. In Edit mode if I click to edit the block then just hit save without changing anything the image will appear but when I hit Publish it is not there.
This has been extremely frustrating and has effectively prevented me from moving forward with my project.It has cost me many hours and many dents in my desktop that resemble my forehead.
I did eventually find a post that indicates that there is indeed a bug involving background images on global areas and that it will be fixed in the 5.6 release due at the end of the month.
I guess I will put this project on hold until then. I believe that there is also a bug in the update process in the current 5.5.2.1 version so I guess I will just Nuke the site once again and start over with 5.6 once it is available at my hosting provider.
Thanks for trying to help.
James
Alternatively (I doubt it will be this, but I get issues similar and this solves it). Go to Page Types, find your page type, hit defaults. Select the block that isn't working right, click it, select Setup on Child pages. Select all the pages it should appear on and submit/ok it off.
See if that helps.
Be sure to mark this as an answer if it helps! :-)
Job.