search
HomeBackend DevelopmentPHP TutorialHow to make a template in phpcms
How to make a template in phpcmsJun 24, 2019 pm 04:16 PM
phpcmstemplate

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.

How to make a template in phpcms

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.

How to make a template in phpcms

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!

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
phpcms是什么框架phpcms是什么框架Apr 20, 2024 pm 10:51 PM

PHP CMS 是一种基于 PHP 的开源内容管理系统,用于管理网站内容,其特点包括易用性、强大功能、可扩展性、安全性高和免费开源。它可以节省时间、提升网站质量、增强协作并降低开发成本,广泛应用于新闻网站、博客、企业网站、电子商务网站和社区论坛等各种网站。

phpcms怎么跳转到详情页phpcms怎么跳转到详情页Jul 27, 2023 pm 05:23 PM

phpcms跳转到详情页方法:1、使用header函数来生成跳转链接;2、循环遍历内容列表;3、获取内容的标题和详情页链接;4、生成跳转链接即可。

微信登录集成指南:PHPCMS实战微信登录集成指南:PHPCMS实战Mar 29, 2024 am 09:18 AM

标题:微信登录集成指南:PHPCMS实战在今天的互联网时代,社交化登录已经成为网站必备的功能之一。微信作为国内最流行的社交平台之一,其登录功能也被越来越多的网站所采用。本文将介绍如何在PHPCMS网站中集成微信登录功能,并提供具体的代码示例。第一步:注册微信开放平台账号首先,我们需要在微信开放平台上注册一个开发者账号,申请相应的开发权限。登录[微信开放平台]

phpcms是什么意思phpcms是什么意思Apr 20, 2024 pm 10:39 PM

PHPCMS 是一款免费开源的内容管理系统 (CMS),特点包括:开放源码、模块化、灵活、用户友好和社区支持。它可用于创建各种类型的网站,包括企业网站、电子商务网站、博客和社区论坛。技术要求包括:PHP 5.6 或更高版本、MySQL、MariaDB 或 PostgreSQL 数据库以及 Apache 或 Nginx Web 服务器。

2023年最新phpcms视频教程推荐(二次开发必学)2023年最新phpcms视频教程推荐(二次开发必学)Oct 25, 2019 pm 03:45 PM

很多站长使用PHPCMS进行二次开发建站,PHP中文网特意推出了phpcms视频教程,大家可以随时随地免费观看视频教程,不需要从百度网盘下载,非常方便。

phpcms怎么实现微信登陆phpcms怎么实现微信登陆Mar 09, 2023 am 09:33 AM

phpcms实现微信登录的方法:1、在根目录新建“wechat.php”;2、在“\phpcms\modules\member\index.php”下增加“public function wechat() {...}”;3、在“foreground.class.php”文件中通过wechat函数判断用户是否登录即可。

phpcms用什么数据库phpcms用什么数据库Feb 21, 2023 pm 06:57 PM

phpcms用mysql数据库。phpcms是一个PHP开源网站管理系统,采用PHP+MYSQL做为技术基础进行开发。PHPCMS V9采用OOP方式进行基础运行框架搭建,支持的PHP版本是PHP5及以上、支持的MYSQL版本是MySql 4.1以上版本。

phpcms怎么修改站点名称phpcms怎么修改站点名称Feb 24, 2023 am 09:29 AM

phpcms修改站点名称的方法:1、使用管理员登录后台页面;2、在顶部的菜单栏找到“设置”选项单击,然后在左侧的菜单出找到“站点管理”;3、找到需要修改的站点,点击该站点域名右面的修改链接;4、在弹出的窗口中修改站点名称即可。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.