\GridFieldSiteTreeAddNewButton
This component creates a dropdown of possible page types and a button to create a new page.
This bypasses GridFieldDetailForm to use the standard CMS.
- Author: Michael Strong <mstrong@silverstripe.org>
Synopsis
class GridFieldSiteTreeAddNewButton
extends GridFieldAddNewButton
implements
GridField_ActionProvider
{
- // methods
- public void getAllowedChildren()
- public void getHTMLFragments()
- public array getActions()
- public void handleAction()
Hierarchy
Extends
- GridFieldAddNewButton
Implements
- GridField_ActionProvider
Methods
public
- getActions() — Provide actions to this component.
- getAllowedChildren()
- getHTMLFragments()
- handleAction() — Handles the add action, but only acts as a wrapper for {@link CMSPageAddController::doAdd()}