Phpcms is a very convenient website management software, download good software from the Internet and put in the Wamp www directory, and then through the path step by step installation is good. Database to write their own database name and password, if no password is not written, login is this background page:
1, to do the site note two folders, phpcms in the templates is to put their own new template, in the template folder to build a content sub-file, the written HTML files are placed in the content inside and modify the name. Statics to put their own writing CSS, JS, images, preferably categorized in the respective folder.
2, create a good file back in the background click on the Settings menu site management, click Modify, in the template style to choose the template you created, OK.
3, modify the CSS, JS, images path, press ctrl+f find "CSS replaced with {css_path}css," JS replaced with {js_path}js, "images replaced with {img_path}images.
4, the head and tail are taken out, new header.html and footer.html two folders, the head and tail are put into the inside, so in writing to the head, the main body, the tail part is clear.
Header.html:
<! DOCTYPE HTML Public"-//W3C//DTD XHTML 1.0 transitional//en" "HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-TRANSITIONAL.DTD">"http://www.w3.org/1999/xhtml">"Content-type"Content="text/html; Charset=utf-8"/><title>{ifIsset ($SEO ['title']) &&!empty ($SEO ['title']} {$SEO ['title']}{/if} {$SEO ['Site_title']}</title><meta name="keywords"Content="{$SEO [' keyword ']}"><meta name="Description"Content="{$SEO [' description ']}"><link href="{css_path}css/header.css"Rel="stylesheet"Type="Text/css"/><script src="{js_path}js/jquery-1.7.2.min.js"></script>"Head"> <div id="Logowai"> <div id="logo"> "{img_path}images/logo1.jpg"Width=" $"height=" -"/> </div> <div id="Menu">{pc:content Action="category"Catid="0"num="4"Siteid="$siteid"Order="Listorder ASC"} {loop $data $r} {if$catid = = $v [CATID] | | $top _parentid==$v [CATID]}<a href="{$r [url]}"><divclass="Menu Menu_sel">{$r [catname]}</div></a> {Else} <a href="{$r [url]}"><divclass="Menu">{$r [catname]}</div></a> {/if} {/Loop} {/PC} {if$top _parentid==0} <a href="{SiteURL ($siteid)}"> <divclass="Menu Menu_sel"> Home </div> </a> {Else} <a href="{SiteURL ($siteid)}"> <divclass="Menu"> Home </div> </a> {/if} </div> </div></div><!--head End--
Footer,html:
<!--footer starts--><div style="Clear:both"></div><div id="Yejiaowai"> <div id="Yejiao"> <divclass="Yj_one"></div> <divclass="Yj_item">Copyright© .-2018Zhen Body Fiber Beauty Copyright All rights Reserved Network technical support</div> <divclass="Yj_item">Tel:0635-8240686Email: [Email protected] Address: Liaocheng Dongchangfu District</div> </div></div><!--Footer End--></body>5, the main page index.html inside of the head and tail are taken, then the head and tail need to replace a piece of code:
" content ","header"}
" content ","footer"}
6, then write something in the head, according to the default template to be able to:
<title>{if isset ($SEO ['title']) &&!empty ($SEO [' title '])} {$SEO ['title']} {/if} {$SEO ['site_title']}</title>
<meta name="keywords" content="{$SEO [' keyword ']}"> <meta name="description" content="{$SEO [' description ']}" >
Head Style: Select the admin section under the Content menu, then add it in turn:
There are a total of five columns, the five columns are traversed:
<body><!--head Head--><div id="Head"> <div id="Logowai"> <div id="logo"> "{img_path}images/logo1.jpg"Width=" $"height=" -"/> </div> <div id="Menu">{pc:content Action="category"Catid="0"num="4"Siteid="$siteid"Order="Listorder ASC"} {loop
$data $r} { <!--category是栏目 catid是顶级栏目也就是一级栏目-->
if$catid = = $v [CATID] | | $top _parentid==$v [CATID]}<a href="{$r [url]}"><divclass="Menu Menu_sel">{$r [catname]}</div></a><!--catname is the column name -- {Else} <a href="{$r [url]}"><divclass="Menu">{$r [catname]}</div></a> {/if} {/Loop} {/PC}
The first page is to be clicked to change color:
{if$top _parentid==0}<!--to determine if the home page display is home --<a href="{SiteURL ($siteid)}"> <divclass="Menu Menu_sel"> Home </div> </a> {Else} <a href="{SiteURL ($siteid)}"> <divclass="Menu"> Home </div> </a> {/if}
The above is the part of the head.
PHPCMS Background Management basic operation (replacement of head tail)