To replace a home page with a CMS

Source: Internet
Author: User

to replace a home page with a CMS1. Do a static page first;2Create a new folder under the D:\wamp\www\phpcms\install_package\phpcms\templates folder Tianqiwangluo (project name), Again in Tianqiwangluo resume new folder content (site contents)3. Put the HTML file of the static page into the D:\wamp\www\phpcms\install_package\phpcms\templates\tianqiwangluo\content; Put the static page of the CSS folder into the D:\wamp\www\phpcms\install_package\statics\css folder, the static page of the folder where the picture is placed D:\wamp\www\phpcms\ Install_package\statics\image folder, place the static page JS folder into the D:\wamp\www\phpcms\install_package\statics\js folder;4. Open D:\wamp\www\phpcms\install_package\phpcms\templates\default\content, which is placed in the CMS template, observe the folder under the HTML file;5The . CMS template inside the home page inside the head and the tail split out, respectively, placed in the header.html and footer.html inside, because the other pages will also be used in the head and tail;6change the name of the static page to index.html, and then create a new header.html and footer.html. 7Enter the CMS template background management, in the settings-site management-site-style configuration will appear in the default template and the new added template. You can also see the new template in the interface-template style, where you can change the template to Chinese name;8. In the settings-site management--seo configuration changes to the target name, template-style formulation inside to modify the newly added template, the default style is also selected new additions. The others do not need to be modified, click OK;9Click on the Model management inside the content, click on the Model Management, click on the model in the name of the changes, the available style changes to their own;TenClick on the content of the Management section, click on the right side of the changes, select the template settings inside, in the available style to select New Additions, click Submit, after the submission, click Update Cache. Then click Update Cache in the upper-right corner, then click Generate Home Page.  Onefind the new index.html, header.html, footer.html, open with DW, and put the head code and the tail code in header.html, footer.html, respectively. Good text to the top has been concerned about the collection of this article

To replace a home page with a CMS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.