Headers/Footers

Permalink
I've developed a few themes using C5 now and love it. The only question I have is how to add a scrapbook piece to all pages without having to go to each individual page and add it.

smplejohn
 
hursey013 replied on at Permalink Best Answer Reply
hursey013
You can add a scrapbook item directly to a template file by using
<?php
            $b = Block::getByName('Scrapbook Item');
            $b->display();
            ?>
and replace "Scrapbook Item" with whatever you have named the item in the scrapbook. This is by far the easiest method in my opinion. Otherwise you could use page defaults to add blocks to page types, but its much less flexible.
smplejohn replied on at Permalink Reply
smplejohn
Any tips on making it editable within the edit mode of the site? Trying to keep it simple for the client.