This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

cms:onExtendTemplatesToolbar event

Triggered by /modules/cms/controllers/cms_templates/_control_panel.htm
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onExtendTemplatesToolbar(Backend_Controller $controller)
$controller Backend_Controller the back-end controller object.
Allows to add new buttons to the toolbar above the layout list (CMS/Layouts page) in the Administration Area. The event handler should accept the back-end controller object and use its renderPartial() method to render new toolbar elements.
public function subscribeEvents()
{
  Backend::$events->addEvent('cms:onExtendTemplatesToolbar', $this, 'extend_toolbar');
}

public function extend_toolbar($controller)
{
  $controller->renderPartial(PATH_APP.'/modules/cmsext/partials/_toolbar.htm');
}

// Example of the _toolbar.htm partial

<div class="separator">&nbsp;</div>
<?= backend_ctr_button('Some button', 'new_document', '#') ?>