Home >CMS Tutorial >PHPCMS >How to make phpcms template
How to make a phpcms template
1. First, you need to have a html foundation, div css and then some common JavaScript syntax To understand.
2. Then based on them, call the corresponding data according to the syntax rules of phpcms.
3. The default website template directory is index.html in phpcms\templates\default\content. We can also create a new template directory. There is basically no need to modify the program. (Recommended tutorial: phpcms tutorial)
{pc:content action="hits" catid="11" num="10" order="views DESC"}
The action above represents the model, and the values include lists and hits. It means that the data in the article list and click ranking list are called respectively. catid is the column id, which can be obtained from the website backend.
The corresponding css and js files are placed in the css, images and js folders of statics in the root directory of the website. When citing, the path The syntax is {CSS_IMG}/your css file name, and the same is true for js and images. Follow the template syntax rules. In this way, a phpcms template is ready.
The completed template needs to be placed in the same directory as the default template. After the template is completed, you need to select your template in the background interface - Template Style - Settings - Site Management - Default Site - Modify - Template Style Just configure it.
The above is the detailed content of How to make phpcms template. For more information, please follow other related articles on the PHP Chinese website!