Open source java CMS - FreeCMS2.7 menu management

Project address: http://www.freeteam.cn/

menu management

FreeCMS is designed to be friendly to secondary development, so FreeCMS provides menu management functions, and secondary developers can freely add new functional menus to FreeCMS.

In order to make the background management functions more standardized, FreeTeam recommends that you put the newly added functions in the admin directory, and the system also performs login verification on all resources in the admin directory to ensure the security of resource access.

 

Supported since FreeCMS 1.7

Added icon attribute to menu.

 

1. Add a first-level menu

From the left management menu, click menu management to enter.

Click "Add Root Menu"

select icon

 

 

Enter the relevant properties and click "OK".

Notice:

1. The menu address is prefixed with /admin/ by default, as shown in the figure: the menu address is test.do, then the address of this function is /admin/test.do; if you need to point to the address of a non-admin directory, you only need to Fill in the full address, such as /test.do or http://localhost/test.do .

2. The menu code is used when writing programs and is used for permission control. It is recommended to set it as a unique code.

After clicking "Save", the operation result will be prompted

When the prompt "Add menu XXX succeeded" indicates that this menu has been added. You can see it after refreshing the page.

2. Modify the menu

Select the menu that needs to be modified, such as "root menu"

Click "Edit"

Enter the relevant properties and click "OK".

After clicking "Save", the operation result will be prompted

When it prompts "modification of menu XXX succeeded", it means that this menu has been modified. You can see it after refreshing the page.

 

3. Add submenus

Select the menu that needs to add sub-menus, such as "root menu"

Click "Add Subordinate"

After filling in the relevant properties, click "Save".

After clicking "Save", the operation result will be prompted below

When the prompt "Add menu XXX succeeded" indicates that this menu has been added. You can see it after refreshing the page.

4. Transfer menu

For the convenience of users, FreeCMS provides an easy way to change the menu structure, so that you don't need to delete and rebuild the menu when you want to make adjustments to the menu structure.

Select the menu you want to change the menu to which it belongs, such as "root menu"

Click "Transfer"

Select the position to be adjusted, such as "Site", and click it directly.

Notice:

1) If you select "Set as root menu", this menu will become the root menu.

2) When changing the menu, the submenus of this menu will be transferred with this menu.

5. Manage Action Buttons

The management page generally has operation buttons, and FreeCMS provides the management function of the operation buttons for the menu.

Select the menu that needs to manage action buttons, such as "Root Menu"

Click the "Action button" to open the management page

Enter the relevant attributes and click Add.

Note: The execution code is the js code that is triggered when this button is clicked.

If you need to modify or delete, just click the modify or delete button.

Tip: In the admin page, you can use the following two methods to call, but first you need to add

<%@taglib prefix="fs" uri="/fs-tags" %>Enable the fs tag library (freecms tag library).

1) <fs:operButtons/>: Automatically extract and display valid buttons in order.

2) <fs:operButton buttonName="Add" />: Extract the operation button that displays the specified name.

6. Menu sorting

In addition to manually filling in the menu sorting to achieve sorting, you can also directly click the "Up" and "Down" buttons to achieve sorting on the menu list.

7. Delete menu

The delete menu function will delete the specified menu and submenu. This operation cannot be restored, please operate with caution.

Select the menu you want to delete, such as "Root Menu"

Click the "Delete" button

In order to prevent the user from misoperation, the system will prompt the user to confirm, click the "OK" button

After clicking "OK", the operation result will be displayed below

This menu has been deleted when it prompts "operation succeeded". You can see it after refreshing the page.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326235957&siteId=291194637