Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of making phpcms template

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

How to create phpcms templates? This problem may be our daily study or work often see. I hope you learned something from this question. The following is the reference content brought to you by Xiaobian. Let's take a look together!

How to create phpcms templates

1, first need to have html foundation, div css and then some common JavaScript syntax to understand.

2, and then on their basis according to phpcms syntax rules to call the corresponding data.

3. The default website template directory is index.html in phpcms\templates\default\content. We can also create a new template directory. There is little need to modify the program.()

{pc:content action="hits" catid="11" num="10" order="views DESC"}

The action above represents the model, and the values have lists and hits, which represent the data in the article list and click leaderboard respectively. catid is the id of the column, which can be obtained from the background of the website.

The corresponding css and js files are placed under the css and images folder and js folder of the website root directory statics. When referring to the path, the syntax is {CSS_IMG}/your css file name. Similarly, js and images are the same. Follow template syntax rules. This way, a phpcms template is ready.

Do a good template needs and default template on the same level directory below, template needs to be done in the background interface-template style-select your template, settings-site management-default site-modify-template style configuration, on the line.

Thank you for reading! After reading the above, do you have a general understanding of how to make phpcms templates? I hope the content of this article is helpful to everyone. If you want to know more about related articles, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report