Home  >  Article  >  CMS Tutorial  >  How to use phpcms linkage menu

How to use phpcms linkage menu

angryTom
angryTomOriginal
2020-02-15 11:03:142849browse

How to use phpcms linkage menu

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.

How to use phpcms linkage menu

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.

How to use phpcms linkage menu

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn