SheaDawson\Blocks\Extensions\BlocksSiteTreeExtension
BlocksSiteTreeExtension.
- Author: Shea Dawson <shea@silverstripe.com.au>
Synopsis
class BlocksSiteTreeExtension
extends SiteTreeExtension
{
- // members
- private static array $db = ;
- private static array $many_many = ;
- public static array $many_many_extraFields = ;
- private static array $defaults = ;
- private static array $dependencies = ;
- public $blockManager;
- // methods
- public boolean showBlocksFields()
- public void updateCMSFields()
- public void BlockArea()
- public void HasBlockArea()
- public ArrayList getBlockList()
- public ArrayList getAppliedSets()
- public ArrayList getBlocksFromAppliedBlockSets()
- public string areasPreviewLink()
- public string areasPreviewButton()
Hierarchy
Extends
- SilverStripe\CMS\Model\SiteTreeExtension
Members
private
- $db
- $defaults
- $dependencies
- $many_many
public
- $blockManager
- $many_many_extraFields
Methods
public
- BlockArea() — Called from templates to get rendered blocks for the given area.
- HasBlockArea()
- areasPreviewButton() — Get's html for a block area preview button.
- areasPreviewLink() — Get's the link for a block area preview button.
- getAppliedSets() — Get Any BlockSets that apply to this page.
- getBlockList() — Get a merged list of all blocks on this page and ones inherited from BlockSets.
- getBlocksFromAppliedBlockSets() — Get all Blocks from BlockSets that apply to this page.
- showBlocksFields() — Check if the Blocks CMSFields should be displayed for this Page
- updateCMSFields() — Block manager for Pages.