Custom Administration Panel Button / tab
As you know, all actions in WebLancet CMS are performed throgh special administration menu. So, you have another view/action that you want to appear in that menu, and want it appear in the menu?
It's only two records away from the result! :-)
Just open AdministrationPanel table in the database. Now there is no interface to do that so use phpMyAdmin. We'll implement this one later :)
You can see the structure:
Id - the unique negative number. If you're inserting new record to the AdministrationPanel, use one number smaller than the smallest for new records (as this table uses the same SecurityContexts as Items, so it goes down, not up :)
Name - The unique identifier that will be used to take the icon for this action, generate tab/menu caption and etc. It should briefly describe what this action/tab/etc will do.
PathInfo - The view, that will be shown after pressing this button.
Arguments - A string of arguments in format &arg1=val1&arg2=val2 to use with the system.
Position - The position number. By this number items will be ordered in list/tabs/etc.
Type - the button type. The possible values are:
- ItemTab - This button will be shown in the first part of administrational menu for certain models, also, in main administration window tabs. Should be used to display views for items editing (properties, keywords, security, inner elements, anything else...)
- ItemAction - This button will be shown in second part of menu, and will be shown only for some/certain models. This type of buttons should perform some action with current element, i.e. move it to trash, copy it or etc.
- AdminAction - this type of button will be shown in all elements, in the third part of the administrational menu. It should open some general website settings/administrational views, i.e. users list or website structure.
Tools - this field can contain a comma-separated list of model classes for those the first two types are shown. The possible example can be:
,Page,Item,
It will be displayed for Page and Item type components.
*
It will be displayed for all components.
IconPath - Obsolette, will be removed in next version
Title - Obsolette, will be removed in next version