How to make a template in phpcms
Among the many templates used by the editor, I feel that phpcms is more convenient to use. Compared with other cms such as dedecms and WordPress, the editor feels that the secondary development, template grammar rules, etc. phpcms is still good to use. Although the official website is basically not maintained and updated, this does not affect our use. Some large websites are also developed by phpcms, such as the official website of the 2019 Wuhan Military Games, and some website construction agencies that do SEO are also the first choice for website construction. It's phpcms. It shows that phpcms is still a good choice for quickly building a website.
So how do we make a phpcms template? For this, you first need to have a basic knowledge of html, div css, and then some common JavaScript syntax. Then based on them, the corresponding data is called according to the syntax rules of phpcms. 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.
{pc:content action="hits" catid="11" num="10" order="views DESC"}
The above action represents the model value with lists, and the hits represent respectively What is called is the data in the article list and click ranking list. 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 syntax of the path is {CSS_IMG}/you css file name, the same is true for js and images. Follow the template syntax rules.
Then the most common ones are the processing of banner and the calling of home page slide. We can all use the idea of creating a new column to solve the problem, and then call the data of this column. There are many solutions, including creating a separate banner module for management, etc.
Some common data that is not frequently modified, such as company name, contact number, address, etc., can be solved through phpcms fragmentation.
phpcms fragment uses
to build websites for customers, and the principle of modifying these constants can be achieved even without touching the code. Although only a few points are briefly introduced here, 80% of corporate website construction problems can be solved.
Of course, this cms also has certain loopholes, and it is easy to be hacked and linked. This is a common problem with open source cms. We need to pay attention to website security. That’s it for the brief introduction. If there is anything else you don’t understand, please leave a message.
For more PHP related technical articles, please visit the PHP Tutorial column to learn!
The above is the detailed content of How to make a template in phpcms. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHP email templates: Customize and personalize your email content With the popularity and widespread use of email, traditional email templates can no longer meet people's needs for personalized and customized email content. Now we can create customized and personalized email templates by using PHP programming language. This article will show you how to use PHP to achieve this goal, and provide some specific code examples. 1. Create an email template First, we need to create a basic email template. This template can be an HTM

Regarding PPT masking, many people must be unfamiliar with it. Most people do not understand it thoroughly when making PPT, but just make it up to make what they like. Therefore, many people do not know what PPT masking means, nor do they understand it. I know what this mask does, and I don’t even know that it can make the picture less monotonous. Friends who want to learn, come and learn, and add some PPT masks to your PPT pictures. Make it less monotonous. So, how to add a PPT mask? Please read below. 1. First we open PPT, select a blank picture, then right-click [Set Background Format] and select a solid color. 2. Click [Insert], word art, enter the word 3. Click [Insert], click [Shape]

C++ template specializations affect function overloading and rewriting: Function overloading: Specialized versions can provide different implementations of a specific type, thus affecting the functions the compiler chooses to call. Function overriding: The specialized version in the derived class will override the template function in the base class, affecting the behavior of the derived class object when calling the function.

How to jump to the details page in phpcms: 1. Use the header function to generate a jump link; 2. Loop through the content list; 3. Get the title and details page link of the content; 4. Generate a jump link.

C++ is a programming language widely used in various fields. Its template metaprogramming is an advanced programming technique that allows programmers to transform types and values at compile time. Template metaprogramming is a widely discussed topic in C++, so questions related to it are quite common in interviews. Here are some common template metaprogramming interview questions in C++ that you may be asked. What is template metaprogramming? Template metaprogramming is a technique for manipulating types and values at compile time. It uses templates and metafunctions to generate based on types and values

PHP CMS is a PHP-based open source content management system for managing website content. Its features include ease of use, powerful functionality, scalability, high security, and free open source. It can save time, improve website quality, enhance collaboration and reduce development costs, and is widely used in various websites such as news websites, blogs, corporate websites, e-commerce websites and community forums.

How to implement image template and mask processing in Vue? In Vue, we often need to perform some special processing on images, such as adding template effects or masks. This article will introduce how to use Vue to achieve these two image processing effects. 1. Image template processing When using Vue to process images, we can use the filter attribute of CSS to achieve template effects. The filter attribute adds graphic effects to the element, and the brightness filter can change the brightness of the picture. we can change

Flask-Bootstrap: Adding templates to Flask applications Flask is a lightweight Python web framework that provides a simple and flexible way to build web applications. It is a very popular framework, but its default templates have limited functionality. To create attractive user interfaces, use additional frameworks or libraries. This is where Flask-Bootstrap comes in. Flask-Bootstrap is a Twitter-based
