How to use phpcms linkage menu
In phpcms, the management location of the linkage menu is located in "Backstage-Extended-Linkage Menu" and supports customization Add, linkage menu generally has usage:
1. When creating a custom field in the data model, set the field type to "Linkage Menu"
Then in " Select your regional linkage menu through the linkage menu list at the "Menu ID" option, and set the return value method of the linkage menu. Then this linkage menu item can appear in the content addition editing interface. This method is commonly used.
2. Directly call the linkage menu in the phpcms template. This method is not commonly used.
The specific method is to go to the background-extension-linkage menu list. You will see that each linkage menu has a calling code. Just copy and paste this code to the template location you want to place. . But according to experience, this is not enough, because although the linkage menu drops out through this code, due to the lack of css and js files for single display, the display is often abnormal, so you need to ensure that statics is also introduced into your template. /js/dialog.js, statics/js/linkage/js/pop.js, statics/css/dialog.css and other files. A certain understanding of phpcms is required.
Related recommendations: phpcms learning
The above is the detailed content of How to use phpcms linkage menu. For more information, please follow other related articles on the PHP Chinese website!