鏈接的標(biāo)準(zhǔn)化(標(biāo)準(zhǔn)化系列)
一、靜態(tài)寫(xiě)法:
1、主站靜態(tài)鏈接寫(xiě)法:
A:主站的“更多>>”:靜態(tài)的寫(xiě)法
<a href="{$this_system.domain}/html/893/" target="_blank">更多</a>
B:主站的導(dǎo)航:靜態(tài)地址寫(xiě)法
html/781/
2、分站靜態(tài)鏈接寫(xiě)法:
A:分站的更多>>的鏈接靜態(tài)地址寫(xiě)法
<a href="{$site_domain}/19107/" target="_blank">更多>></a>
<a href="{$site_domain}/19785" target="_blank">MORE+</a>
B:內(nèi)容頁(yè)的靜態(tài)寫(xiě)法:
<a href="{$site_domain}/2018_05/10_18/content-12843.html" target="_blank">更多>></a>
C: 靜態(tài)導(dǎo)航菜單寫(xiě)法:
{$site_domain}/19106/
二、動(dòng)態(tài)地址寫(xiě)法:
1、主站動(dòng)態(tài)鏈接寫(xiě)法:
A:主站的“更多>>”:靜態(tài)的寫(xiě)法
<a href="{$core.controller}/cms/item-list-category-44.shtml" target="_blank">更多</a>
B:主站的導(dǎo)航:動(dòng)態(tài)的寫(xiě)法
index.php/cms/item-list-category-1360.shtml
2、分站動(dòng)態(tài)鏈接寫(xiě)法:
A:分站的"更多>>": 動(dòng)態(tài)的地址的寫(xiě)法
<a href="{$this_system.controller}/item-list-category-8784.shtml" target="_blank">更多>></a>
B:動(dòng)態(tài)導(dǎo)航菜單寫(xiě)法:
{$system_url}/item-list-category-8784.html
三、主站與子站全局靜態(tài)鏈接:
比如我們需要寫(xiě)上統(tǒng)一登錄入口, 用下面的寫(xiě)法,xxx表示的靜態(tài)頁(yè)面。
{$STATIC_URL}/XXXl.html
四、主站的其他的鏈接寫(xiě)法:
A:信箱的鏈接寫(xiě)法
<a href="{$core.controller}/letter-list">黨委信箱</a>
B:表單的寫(xiě)法
<a href="{$core.controller}/forms-post?mid=29"><span>網(wǎng)上舉報(bào)</span></a>
五、統(tǒng)一入口的鏈接寫(xiě)法(會(huì)員中心、標(biāo)簽、后臺(tái)):
A:主站
主站會(huì)員中心登陸:{$core.U_controller}
B:子站
會(huì)員中心:{$core.U_controller}?site=school01
分站某后臺(tái):{$core.admin_controller}/sites-index?site=school01
分站某首頁(yè)標(biāo)簽:{$core.controller}/../s.php/school01?&edit_label=1
本教程文檔下載:
3-鏈接的統(tǒng)一寫(xiě)法-----標(biāo)準(zhǔn)化系列.doc