Header in 5.5

Permalink Browser Info Environment
In past versions, the header was created by changing the global scrapbook. How do you do this in the new 5.5 version? I've looked around but I guess I'm just having a 'senior moment' 'cause I can't find it anywhere. :)

Type: Discussion
Status: New
agpate
View Replies:
Vivid replied on at Permalink Reply
Vivid
Here is where I say that 5.5.0 isn't quite public-ready. A major oversight was how to do some global elements such as the "my_site_name" like that for themes. I think they're looking into a way to rename blocks in stacks (since scrapbook got scrapped..)
zanix replied on at Permalink Reply
zanix
You can have the theme create a Stack for v5.5
Then add the Simple Logo block to the My_Site_Name stack

In packages/naturalwood/themes/naturalwood/inc/header.php
Find and comment
$block = Block::getByName('My_Site_Name');  
if( $block && $block->bID ) $block->display();   
else echo SITE;


Add below
$ga = new GlobalArea('My_Site_Name');
$ga->display();


I'm not sure how to check if the Simple Logo block has been added to the stack, but this will let you add the Simple Logo block to the header.

I found this info here
http://www.concrete5.org/documentation/how-tos/developers/concrete5...
Vivid replied on at Permalink Reply
Vivid
Well, the problem was corrected in 5.5.1 - you can now name blocks as we always have by adding a block to a stack, then clicking on that block, hitting "custom template" and naming it "My_Site_Name". Not as intuitive as it used to be, but it's the standard solution.
zanix replied on at Permalink Reply
zanix
Ah, I didn't see that you could do that.
Probably a better solution than editing code if you have 5.5.1
Vivid replied on at Permalink Reply
Vivid
5.5.0 was mainly meant for testing and developers (which is why it was released, but not as a stable version), so yeah I'm not going to bother changing it.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.