search
HomeCMS TutorialPHPCMSCan phpcms upload web pages?

Can phpcms upload web pages?

Nov 01, 2019 am 10:58 AM
phpcms

Can phpcms upload web pages?

phpcms can upload web pages. Let's take a look at how phpcms uploads web pages:

1. The front-end template directory is in phpcms\templates\default\content of PHPCMS. Back up the newly installed PC front-end template (for reference), and then Delete and put the completed web page here.

2. Copy the JS, images and css files used in the web page to the corresponding folder under statics.

3. phpcms\templates\default\content Create two new html pages below, namely header.html and footer. The html represents the head and the tail respectively.

4. Open the home page and cut the header information into the newly created header.html.

5. Then change the paths of css, js, and pictures. JS path: {JS_PATH} css path: {CSS_PATH} Picture path: {IMG_PATH} (you can refer to the header.html of the original template)

6. Cut the bottom of index.html into footer.html.

7. Open index.html. The current index.html is index.html with the head and tail removed. Introduce and paste at the top: {template "content", "header"}, and paste { at the bottom. template "content","footer"}.

8. When doing this, other pages must remove the header and trailer and introduce the header and trailer accordingly, so as to achieve a common header and trailer.

9. Change the image path where images are used in the page to {IMG_PATH}XXX.jpg, and change JS and css to {JS_PATH}XXX.js and {CSS_PATH}XXX. css.

10. Download "PHPCMS V9 User Manual.chm", look at the template tag, and call the content.

Note: In step 5, these are constants corresponding to the website root directory /statics/js/, /statics/css/, /statics/images/, so you can definitely reference it with variables. The css and JS of the image placed in static

The above is the detailed content of Can phpcms upload web pages?. 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

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

Video Face Swap

Video Face Swap

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

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor