AirNZ\SimpleSubsites\Extensions\CMSMainExtension
Decorator designed to add subsites support to LeftAndMain
Synopsis
class CMSMainExtension
extends Extension
{
- // methods
- public void getCMSTreeTitle()
- public void updatePageOptions()
- public ArrayList sectionSites()
- public void CanAddSubsites()
- public void shouldChangeSubsite()
- public void canAccess()
- public void alternateAccessCheck()
- public void onBeforeInit()
- public void augmentNewSiteTreeItem()
- public void onAfterSave()
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
public
- CanAddSubsites()
- alternateAccessCheck() — Prevent accessing disallowed resources. This happens after onBeforeInit has executed, so all redirections should've already taken place.
- augmentNewSiteTreeItem()
- canAccess() — Check if the current controller is accessible for this user on this subsite.
- getCMSTreeTitle() — Set the title of the CMS tree
- onAfterSave()
- onBeforeInit() — Redirect the user to something accessible if the current section/subsite is forbidden.
- sectionSites() — Find all subsites accessible for current user on this controller.
- shouldChangeSubsite() — Helper for testing if the subsite should be adjusted.
- updatePageOptions()