Programmer's Guide to CMS Action Menus
Action Menus are presented when a user is logged in. Most users only see a limited number of action buttons. Typically, the complete set of action buttons is available only to the programmer. The action buttons are shown based on user access type. A programmer will see the Programmer's Action Menu, an administrator will see the Administrator's Action Menu, etc.
This document is intended to help the programmer make changes to these Action Menus. This is a programming task since it may involve changes to the program code in the JshGUI.pm module.
The menuctrl.txt file controls where on the menu each particular button will appear. This includes both the row and the position in the row. This file also controls what group or groups of users will see or not see the particular action button.
A new button requires an entry in this file. When creating new functionality, add an entry to this file on the selected development website. If needed, consult JshGUI.pm to be sure your chosen button code is unique.
Here are the steps you need to take when adding an action button.
-
Decide if the button needs to be on a new line.
-
Decide on the line and the position in the line where you want the button to appear.
-
Decide what group or groups of users need to see the button and access the function.
-
Decide on the button code for button.
-
Logon with administrator's privileges.
-
Click "Content".
-
Select "Configuration Files" and click "Continue".
-
Select the menu control file, usually "menuctrl.txt" and click "Edit the File".
-
Add a line to the table for the new button in the appropriate position.
-
Make a note of the button code for use in a later step.
-
Be sure to adjust the line numbers if needed.
-
Be sure to make note of whether the button is on a new line.
-
Make any other needed changes and click "Save Changes".
-
Open JshGUI.pm.
-
If the button(s) are to be on a new line, increase the number of loops in gui_action_menu to handle the additional line.
-
Add code for the new button to expand_mybtn. The button codes are arranged alphabetically.
-
You need to specify the .pl filename and function associated with the button code.
-
Save and upload JshGUI.pm to make the change effective.
-
View the Action Menu to confirm that you have achieved the desired effect.
-
Make additional changes, as needed.
This procedure is abbreviated and high level. Programmers should apply their knowledge and experience to supply any missing details.
|