Editing a 'block which is contained within a global area'
The main logo on my site appears on every page. I need to use a different logo for a different 'sub service' on at least one other page. When I try to edit it, I am told "This block is contained within a global area. Changing its content will change it everywhere that global area is referenced."
Can anyone tell me how I can change the logo (use a different file) on one page without it affecting all the others?
Thank you :-)
The whole point of global areas is they are the same everywhere. But you don't have to use them in every page type. So if most of your site has the same logo, then a global area is great but you need a page type without it for any variations.
Create a 'Text' page attribute with a handle of 'logo_area_name' and a name of 'Logo Area Name'.
Replace the Global Area code in your header.php file that displays your logo with this code:
<?php $a = new GlobalArea($c->getAttribute('logo_area_name')?$c->getAttribute('logo_area_name'):"LOGO"); $a->display(); ?>
Replace the "LOGO" part with the current name of your Global Area that holds your logo.
On a sub-services page where you want a different logo (e.g. Plumbing) add the 'Logo Area Name' attribute to your page with a value that represents the sub-service such as 'Plumbing Logo'.
As soon as you put this page into Edit Mode, the name of the Global Area will change to 'Add to Sitewide Plumbing Logo' and a Stack called 'Plumbing Services Logo' will be created automatically.
This will let you add as many special logos as you need.
My question is where is my theme folder and how I can create a 'Text' page attribute with...
Could you be kind to explain it step by step? I am using the latest version and the Edit popup seems to be different from yours.
Thank you in advance.
Do I have to use a different method?
Please help me to edit my home page.
You are very kind!
Services PortfolioTeam About.Careers Frequently Asked Questions BlogContact
But this block is in the global area, I am not allowed to change the names.
Concrete5.7 does not allow me to change them?
I would like to know how to modify the names.
Thanks in advance