MidCOM Toolbars
From MidgardWiki
This MidCOM Service is included in MidCOM versions 2.6 and later. It supercedes the MidCOM AIS interface and provides on-site administration. MidCOM Components can use hooks to include custom commands into the menus. An interface to midcom.services.toolbars is inlcuded into the MidCOM PHP Superglobal.
To use the on-site administration interface, the follwoing code should be include into one of the Root Style's Elements:
$_MIDCOM->toolbars->show();
There are different options for displaying toolbars. The standard is to have a centralized, floating toolbar which combines all options available to the current user in the given path. You can also split this into HTML-only toolbars (currently, there is a view and a node toolbar)
Structure
The centralized toolbar is divided into three submenus, Page, Folder and Website. Page holds options for the current content object (like access to the RCS, ACL and Metadata systems, to Content Approval aas well as edit and delete links). Folder holds options for the current Topic (controlled by midcom.admin.folder), while Website contains global options (like Logout, Cache Invalidation, Site Settings)
Types
There are different modes the Toolbars can operate in, for example the centralized toolbar, the view and node toolbars and the Asgard 2 Toolbar
