First with a static home page template, through the CMS to be replaced by a background
The first page of the replacement process to start with a static page, take this page to replace
Page all the files are here, do the static page of the file
Now all we have to do is copy these files and get the phpcms inside a phpcms folder with the contents of a Ceshi inside templates.
Let's get the first page in and replace it.
This time the homepage template has been thrown over then we go to visit the site again, update the cache, the new generation of home
Will find that the homepage has changed and become a static page
You will find that there are fewer pictures in this page, and no style sheets.
Because we only threw the page, the corresponding picture and style sheet did not throw over
So where is the file? Picture we'll copy the IMG and throw it
Picture we'll copy the IMG and throw it into the Phpcms install_package Statics's Images
BS folder where to throw, if the more general situation, CSS and JS folder any arbitrary can be
This is the first thing to do, copy the files.
I then open the template file index.html
The jquery \bootstrap is referenced, and these files are now missing, so no display
Including the image can not be found, so we are the second step is to replace the directory, as long as it appears inside the folder to be replaced
Don't find this thing when you replace it, just change it.
We'll just ctrl+f directly to find out.
The first we're going to look for a replacement for the BS folder
Look at the basic configuration inside the background settings
To find the corresponding path, just call the appropriate path.
Replace the write front of a label {} in {Js_path} uppercase this represents the directory of JS Path
Find this directory and follow BS, basically double quotes.
So let's add double quotes in these two places and click Replace All
This replaces it so that the BS path is replaced.
Now there's an IMG folder
Let's look at IMG first.
Beginning with a dot, the following line starts with the class name, which cannot be replaced
The angle brackets are preceded by an IMG tag and cannot be replaced
Double quotation marks can not replace all the beginning, then we find all the slashes of the IMG
Represents the picture path, which is replaced by all
So we've all replaced the path of the picture.
So it all shows.
Next how to change the static page to dynamic, then the phpcms inside provides some tags, through these tags can be static web programming dynamic, do not need to write PHP code, is through the label to complete, at the beginning can not remember it does not matter, through Baidu to complete
We're going to split the site into 3 copies.
The first one is the header of the Web site, starting from the top, to the end of the menu
From the end of the menu, cut it up, create a new HTML file, and save it to the Install_package in Phpcms.
The content of the templates in the Phpcms in the Ceshi name is a fixed header.
The second one has to be removed, and the steps are the same. The fixed name is footer
That would mean 3 parts.
The part of the discovery header was not introduced after the build, which is what we are going to use phpcms tags to introduce
Copy and paste directly
What is the template introduced into the template? Header
Content folder name
In the introduction of footers
So the head and tail are all showing up, why are you tearing it down? Because each page has its head and tail, it is easy to use
Next, the content of the head is replaced, the static replacement dynamic, find the header open
If you do not know how to replace, you can see the title of the page add a sentence
Do not care what the meaning, know put in title inside is headline
Plus two additional tags.
We also copied it.
Phpcms How to do business station-to-replace homepage initial operation