The Scrapbook helper provides some simple functions for working with global scrapbooks.
Loading the Helper
$sh = Loader::helper(‘concrete/scrapbook’);
Methods
$sh->getPersonalScrapbookName()
Returns the name of the personal scrapbook.
$sh->getGlobalScrapbookPage()
Returns a page object corresponding to where the global scrapbook areas live.
$areas = $sh->getAvailableScrapbooks()
Returns all areas on the global scrapbook page - ie, every global scrapbook created.
$sb = $sh->getDefault()
Returns the default scrapbook to add blocks to. This is typically the last one used.’
$sh->setDefault($scrapbook)
Sets the default scrapbook to add blocks to. This is typically the last one added to.
Loading Conversation