$global_footer = Page::getByID(1); $ah = new Area('footer'); $ah->setBlockLimit(1); // this is optional $ah->display($global_footer);
$block = Block::getByName('MailingListBox'); if( is_object($block) ) $block->display();
if( is_object($cta) ) { echo $cta->display(); } else { if( $c->isEditMode() ) echo $message = '<span class="editing-notice"> <strong>Block Not Found</strong><br /> The attribute "<em>' . $c->getCollectionAttributeValue("call_to_action") . '</em>" could not be found in any shared scrapbook. Check the names of the blocks in the shared scrapbook and ensure one block matches the attribute value exactly. </span>'; }
<?php $block = Block::getByName('test1'); if( is_object($block) ) $block->display(); ?>
There is a whole vimeo tutorial on this so just dig around the forum and you should find a link somewhere