Home > CMS Tutorial > PHPCMS > How to make phpcms template

How to make phpcms template

angryTom
Release: 2019-11-16 14:40:58
Original
3208 people have browsed it

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"}
Copy after login

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.

How to make phpcms template

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template