cms To replace the home page

1. Do a good job of static page first ;

2. stay D:\wamp\www\phpcms\install_package\phpcms\templates Create a new folder under the folder tianqiwangluo( Project name ), And then tianqiwangluo Resume new folder content( Website content )

3. Put the static page html Files in D:\wamp\www\phpcms\install_package\phpcms\templates\tianqiwangluo\content Inside ;

Place the static page CSS Put your folder in D:\wamp\www\phpcms\install_package\statics\css Under the folder ;

  Put the folder of static page where pictures are placed in D:\wamp\www\phpcms\install_package\statics\image Under the folder ;

Place the static page js Put your folder in D:\wamp\www\phpcms\install_package\statics\js Under the folder ;

4. open D:\wamp\www\phpcms\install_package\phpcms\templates\default\content, What's in it is cms Templates , Look under the folder html file ;

5.cms The template splits the head and tail of the homepage , They were put in the header.html and footer.html Inside , Because other pages also use the head and tail ;

6. Change the name of the static page to index.html, New again header.html and footer.html.

7. Get into cms Template background management , Set up —— Site management —— Site style configuration   There will be default templates and new templates . Or in the interface —— View the newly added template in the template style , You can change the template to Chinese name here ;

8. Set up —— Site management ——SEO Modify the configuration to the target name , The template style is changed into a new template , The default style is also new . The others don't need to be changed , Click ok ;

9. Click model management in the content , Click model management inside , Click Modify in the model name in turn , Change the available styles into your own ;

10. Then click the management column under the content , Click Modify on the right , Select the template settings inside , Choose new styles from the available styles , Click on the submit , After submitting, click Update cache . Then click Update cache in the upper right corner , Then click to generate the home page .

11. Find the new index.html、header.html、footer.html, use dw open , Put the head code and tail code separately in header.html、footer.html Inside .


Here's the problem with the path. Start modifying

open content Under the folder index.html

First step

Split the front page into three pieces , open header 、index、footer The first page of the document decomposition ,header It's the navigation part ,footer It's the footers . Then take it. header and footer introduce index Inside

The second step

Search and replace /bs Namely js The path of

And the image path is similar , And style paths

The third step

Start replacing everything that needs to be replaced .

For navigation pc label

content It's the output of the content ,action="category" It's the meaning of the column pc Tags are output columns .catid=0 The top level of the column is the first level label .num=25 The maximum number of calls 25 individual ,siteid Site code ,order This means ascending order

loop A marker is a circular marker Cyclic output ,data As defined above , Define each of the above items to r , Loop output menu , Change the home page path to Change the name of the list to

The amount of the list a The tag jumps to ,

Step four

Add column   Is to add navigation content

Wheel planting

The following modules

12 month 5 Japan PHPCMS Replace more related articles on the home page

  1. 12 month 4 Japan PHPCMS Templates

    cms There are many styles of , What we learn is phpcms, these cms It's all the same , If you learn one, you can use the other cms. PHPCMS Is a website management software . The software is developed by modularization , Support multiple categories , It's easy to personalize ...

  2. 12 month 8 Japan phpcms Read after adding a sub column

    If there is no sub column under a column , Then the template it calls is the list page template ( And list_ Template for prefix ): If there are sub columns under a column , Then it calls the column home page template (category_ Template for prefix ). therefore , When you add ...

  3. 12 month 6 Japan PHPCMS Source in content publishing management

    Access the source of content publishing management , If you write directly {$val['copyfrom']} The content is   Content |0  , First of all, according to "|" To break up , And then write . Example : <!-- The news begins --& ...

  4. MVP Community tour 12 month 5 Beijing station | 12 month 12 Shanghai station on the 21st

    2015 Community tour at the end of the year Powered MVP Roadshow Officially launched !12 month 5 On Saturday afternoon in Beijing ,12 month 12 On Saturday afternoon, Shanghai . Welcome to invite your colleagues and friends to attend MVP Community activities , Also invite you to send event information ( ...

  5. 18.Vim Basic instructions ( Self use )——2019 year 12 month 13 Japan

    title: vim study date: "2018-12-26 20:17:16" tags: Command learning categories: Technical station vim study 2018 year 12 ...

  6. 12 month 22 Japan 《 Orville Power-BI Financial statement data filling 》 Tencent class has started

    A window that can lead anywhere “ Random door ”, It's one of the most coveted props in our childhood . Even now , At work, we will have from time to time “ The world is so big , I want to see it ” The idea of , Or when you suddenly don't want to work , Imagining that my home has become “ Random door ...

  7. 2016 year 12 month 31 Japan Saturday -- Exodus Exodus 21:26

    2016 year 12 month 31 Japan Saturday -- Exodus Exodus 21:26 "If a man hits a manservant or maidservant in the eye and d ...

  8. 2016 year 12 month 30 Japan Friday -- Exodus Exodus 21:25

    2016 year 12 month 30 Japan Friday -- Exodus Exodus 21:25 burn for burn, wound for wound, bruise for bruise. Brand for brand , Hurt for hurt , Fight for fight ...

  9. 2016 year 12 month 29 Japan Thursday -- Exodus Exodus 21:24

    2016 year 12 month 29 Japan Thursday -- Exodus Exodus 21:24 eye for eye, tooth for tooth, hand for hand, foot for foot, an eye for an eye , ...

Random recommendation

  1. Android Weekly Notes Issue #231

    Android Weekly Issue #231 November 13th, 2016 Android Weekly Issue #231 Android Weekly Reading notes , Issue #2 ...

  2. AI The second assignment

    2.9  There is the following sentence , Please use the corresponding predicate formula to express them respectively : (1) Some people like plum blossom , Some people like chrysanthemums , Some people like both plum blossom and chrysanthemum .      Explain : set up P(x): x Is the person      L(x,y): x xi ...

  3. bootstrap Source code analysis tab( tab )

    Realization tab Tab application , This plug-in is relatively simple The source code file : tab.js Realization principle 1. When you click an element , First, remove the highlighted element 2. Then highlight the element you click on 3. If the click element is an option in the drop-down box , Select itself , ...

  4. 【SSM】 The principle of interceptors 、 Realization

    One . background : After a couple of days 11, We have black Friday again , Just after black five , double 12 It's coming again . No matter who cuts hands or not , I guess I'll have to chop my hands this time ! Although as a program ape I , No money, but we have eyes , We are concerned about our tmall . TaoBao . Alipay ...

  5. PHP Error handling

    Wrong classification : 1. Grammar mistakes     2. Runtime error 3. Logic error Debugging method :1. Annotation 2. Output method error_reporting(E_ALL & ~E_NOTICE & ~E_WAR ...

  6. C# DateTime Of ToString() Use of methods

    Console.WriteLine("ToShortDateString:" + DateTime.Now.ToShortDateString()); Console.WriteL ...

  7. poj1850

    Is it because I haven't written the questions for a long time , It took two hours to solve this problem , Several ideas have been overturned use dp The range of array preprocessing is a->a+x character y How many kinds of increasing strings are there And then, for example def First of all a__ How many situations are there? Naturally, only b namely dp ...

  8. 《JavaScript A record of breaking through the customs 》 A function of

    A function is a piece of code , It's defined only once , But it can be executed or called any time . stay JavaScript in , Functions are objects , Programs can manipulate them at will . such as , You can assign functions to variables , Or as an argument to another function , You can also set properties for them , what ...

  9. SQL Query rounding resolvent

    Method 1: SELECT CAST('123.456' as decimal) Will get 123( What follows the decimal point will be omitted ). If you want to get two decimal places . You need to change the above to SELECT CAST ...

  10. ( turn ) Using library functions stdarg.h Realize variable function parameters

    Original address : #define _INTSIZEOF(n)   ( (sizeof(n) + ...