精品国产免费观看久久久_久久天天躁狠狠躁夜夜爽_无码人妻少妇久久中文字幕_狠狠做深爱婷婷久久综合一区

互聯(lián)網(wǎng)知識

精準傳達 ? 價值共享

洞悉互聯(lián)網(wǎng)前沿資訊,探尋網(wǎng)站營銷規(guī)律

織夢城市分站后臺模板修改說明書

作者:狐靈科技 | 2020-03-22 22:44 |點擊:

這里注意講的是后臺模板代碼的修改說明書,不懂的多看幾遍
 
一、模板目錄下的主頁index.htm修改
1、在修改的模板<head>和</head>之間添加以下代碼,一定要添加不然城市名不會顯示
{dede:php}require (DEDEROOT.'/mycity/index.php');{/dede:php}  //模板引用城市分站
 
2、TDK標題、關(guān)鍵詞、描述、分別改為
<title>{dede:php}echo constant("title");{/dede:php}</title>
<meta name="description" content="{dede:php}echo constant("city");{/dede:php}{dede:global.cfg_description/}" />
<meta name="keywords" content="
{dede:php}echo constant("keywords");{/dede:php}" />
 
3、欄目名稱和URL修改:
 
1)、在所有[field:typename/]前面添加[field:city runphp='yes']@me=constant('city');[/field:city]
 
2)、所有欄目URL[field:typelink /]改成[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/list-[field:id/].html
 
例子:<div class="module-full-screen-more">{dede:type typeid='6'}<a href="[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/list-[field:id/].html" target="_blank">更多</a>{/dede:type}</div>
 
4、文章標題和URL修改:
 
1)、在所有[field:title/]前面添加[field:city runphp='yes']@me=constant('city');[/field:city]
2)、文章URL所有[field:arcurl/]改為[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/view-[field:id/].html
 
例子:<h2><a href="[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/view-[field:id/].html" target="_blank">[field:city runphp='yes']@me=constant('city');[/field:city][field:title/]</a></h2>
 
二、頭部head.htm導(dǎo)航修改
參照代碼
{dede:channelartlist row=10 typeid='top'}
          <li {dede:field name='currentstyle'/}><a class="first-level" href="{dede:type   typeid ='' }[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/list-[field:id/].html{/dede:type}" target=""><strong>{dede:field name='typename'/}</strong></a><i></i>
            <div class="vertical-nav-bg"></div>
            <ul class="">
              {dede:channel type='son' noself='yes'}
              <li><a href="[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/list-[field:id/].html">[field:city runphp='yes']@me=constant('city');[/field:city][field:typename/]</a></li>
              {/dede:channel}
 
 
三、產(chǎn)品圖片欄目list_image.htm模板修改
 
1、在修改的模板<head>和</head>之間添加以下代碼
{dede:php}require (DEDEROOT.'/mycity/index.php');{/dede:php}  //模板引用城市
 
2、在原來的TDK前分別添加城市名稱調(diào)用代碼{dede:php}echo constant("city");{/dede:php}
 
如:<title>{dede:php}echo constant("city");{/dede:php}{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:php}echo constant("city");{/dede:php}{dede:field name='keywords'/}" />
<meta name="description" content="{dede:php}echo constant("city");{/dede:php}{dede:field name='description' function='html2text(@me)'/}" />
 
3、欄目名稱和URL修改:
 
1)、在所有欄目名稱[field:typename/]前面添加[field:city runphp='yes']@me=constant('city');[/field:city]
 
2)、所有欄目UR[field:typelink /]改成[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/list-[field:id/].html
 
例子:<li><a href="[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/list-[field:id/].html">[field:city runphp='yes']@me=constant('city');[/field:city][field:typename/]</a></li>>
 
4、文章標題和URL修改:
 
1)、在所有[field:title/]前面添加[field:city runphp='yes']@me=constant('city');[/field:city]
2)、文章URL所有[field:arcurl/]改為[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/view-[field:id/].html
 
例子:<h2><a href="[field:cityurl runphp='yes']@me=constant('cityurl');[/field:cityurl]/view-[field:id/].html" target="_blank">[field:city runphp='yes']@me=constant('city');[/field:city][field:title/]</a></h2>
 
四、其他模板修改請看第三條。
 
 
如沒特殊注明,文章均為狐靈科技原創(chuàng),轉(zhuǎn)載請注明?? "織夢城市分站后臺模板修改說明書
多一份免費策劃方案,總有益處。

請直接添加技術(shù)總監(jiān)微信聯(lián)系咨詢

網(wǎng)站設(shè)計 品牌營銷

多一份參考,總有益處

聯(lián)系狐靈科技,免費獲得專屬《策劃方案》及報價

咨詢相關(guān)問題或預(yù)約面談,可以通過以下方式與我們聯(lián)系

業(yè)務(wù)熱線:15082661954 / 大客戶專線:15523356218