Design won't appear in scrapbook block
Permalink
This is the code I am currently using, the block is appearing correctly, but the design such as "background image" is not being applied to it. If I paste the scrapbook item onto the page in edit mode (not coded in) the design appears correctly. Any feedback / suggestions would be fantastic.
<div id="sidebar">
<?php
$block = Block::getByName('sidebar search');
$block->display();
?>
</div>
<div id="sidebar">
<?php
$block = Block::getByName('sidebar search');
$block->display();
?>
</div>
Right. I'm expiriencing the same problem with v. 5.4.2.2
So the Problem again: first i also created a block in the scrapbook. It's an image-block in my case. Than i defined the custom design for this block right in the backend via the "design" link in the scrapbook list of blocks.
If i'm trying to embed this block by Name into my template, the custom design gets ignored.
So the Problem again: first i also created a block in the scrapbook. It's an image-block in my case. Than i defined the custom design for this block right in the backend via the "design" link in the scrapbook list of blocks.
If i'm trying to embed this block by Name into my template, the custom design gets ignored.
I'm having the same issue, I've applied a custom design to a block and whenever I go to use that block from the scrapbook the design gets ignored.
I believe this is probably related to a problem I am also having with 5.4.2.2
If I add a scrapbook block to a page, then either edit the CSS or positioning in Design and save it, when I go back to edit it:
It is no longer a scrapbook block!!!
The original is still in the scrapbook, but no longer on this page.
I have tried this on two different sites and hosts. Definitely *not* good :(
If I add a scrapbook block to a page, then either edit the CSS or positioning in Design and save it, when I go back to edit it:
It is no longer a scrapbook block!!!
The original is still in the scrapbook, but no longer on this page.
I have tried this on two different sites and hosts. Definitely *not* good :(
Updating to the most recent version of Concrete5 fixed this issue.
If you paste the block into <div id="sidebar"> and get what you want, based upon the snippet you provided, it seems like maybe you are creating two divs with id="sidebar"?