LeKoala\Blocks\BlocksPage
A page mode of blocks
Blocks html are rendered into the Content variable on save, so everything
is statically compiled
This means that blocks versioning will follow page versioning and everything
is published at the same time
Synopsis
class BlocksPage
extends Page
{
- // members
- private static string $table_name = 'BlocksPage';
- private static array $has_many = ;
- private static array $cascade_deletes = ;
- private static boolean $wrap_blocks = true;
- protected static boolean $is_writing = false;
- // methods
- public ArrayList MenuAnchorsItems()
- public array getBlocksListArray()
- public void getContent()
- public void getCMSActions()
- public void getCMSFields()
- protected void onBeforeWrite()
- public string renderContent()
- public void addBlock()
Hierarchy
Extends
- Page
Members
private
- $cascade_deletes
- $has_many
- $table_name
- $wrap_blocks — boolean
protected
- $is_writing
—
boolean
Track writing to prevent infinite loop
Methods
protected
public
- MenuAnchorsItems() — This helper methods helps you to generate anchorable menu for your blocks
- addBlock() — Add a block to this page Useful for programmatic scaffolding
- getBlocksListArray()
- getCMSActions()
- getCMSFields()
- getContent()
- renderContent() — Render all blocks to get a full html document