Get the App
SLTechnology News&Howtos  ›  Servers  › 

Can phpcms upload a web page?

Shulou Source: shulou.com Published: 2022-06-02 01:20:56 10月04日 Update

This article will give you a detailed explanation about whether phpcms can upload web pages. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

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

1. The foreground template directory is located in phpcms\ templates\ default\ content of PHPCMS. Back up the newly installed PC foreground template (for reference), then delete it, and put the finished web page in it.

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

3. Under phpcms\ templates\ default\ content, two new html pages, header.html and footer,html, represent the head and tail, respectively.

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

5. Then change css,js, image path, 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 to remove the head and tail of the index.html, introduce paste at the top: {template "content", "header"}, paste on the bottom {template "content", "footer"}.

8. Other pages that do so have to remove the head and tail and introduce them accordingly, so that the common head and tail are realized.

9. Change the image path where the picture is used on the page to {IMG_PATH} XXX.jpg,JS and css also change to {JS_PATH} XXX.js and {CSS_PATH} XXX.css.

10, download "PHPCMS V9 user manual .chm" to see the template label, call the content on it.

Note: in step 5, these are constants that correspond to the root directory / statics/js/, / statics/css/,/statics/images/, of the site, so you can definitely refer to the images css and JS you put on static with variables.

On whether phpcms can upload the web page to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Web page picture path template page reference representative content foreground head bottom file more article cut good practical two in use information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info Huawei NVidia vpn