原先我們使用showclasstemp標(biāo)簽可以調(diào)用下級子欄目導(dǎo)航,而帝國CMS5.1版新增了“循環(huán)欄目導(dǎo)航標(biāo)簽”是對此標(biāo)簽多父欄目調(diào)用的加強,它可以更好的應(yīng)用于欄目或產(chǎn)品導(dǎo)航及網(wǎng)站地圖。
循環(huán)欄目導(dǎo)航標(biāo)簽基本語法:
[listshowclass]父欄目ID,標(biāo)簽?zāi)0錓D,是否顯示欄目信息數(shù),顯示欄目數(shù)[/listshowclass] |
更詳細的使用語法點擊這里查看:http://oldmartcafe.com/doc/ecmsedu/base/mbzz/html/sysbq.html#listshowclass
舉例說明 例子1:用循環(huán)欄目導(dǎo)航標(biāo)簽實現(xiàn)如下圖效果
 調(diào)用標(biāo)簽為如下:
[listshowclass]'0',14,0,0[/listshowclass] |
說明:調(diào)用所有一級欄目導(dǎo)航,使用標(biāo)簽?zāi)0錓D=14的模板。
標(biāo)簽?zāi)0逯谱鳛槿缦拢?/font> 頁面模板內(nèi)容
<table width="120" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="ffcc00"> <tr> <td><b><a href="[!--bclassurl--]">[!--bclassname--]</a></b></td> </tr> [!--empirenews.listtemp--] <!--list.var1--> [!--empirenews.listtemp--] </table> |
列表內(nèi)容模板(list.var)
<tr> <td bgcolor="#FFFFFF"><a href="[!--classurl--]">[!--classname--]</a></td> </tr> |
例子2:用循環(huán)欄目導(dǎo)航標(biāo)簽實現(xiàn)如下圖效果
 調(diào)用標(biāo)簽為如下:
[listshowclass]'0',15,1,0[/listshowclass] |
說明:調(diào)用所有一級欄目導(dǎo)航,使用標(biāo)簽?zāi)0錓D=15的模板,并且顯示記錄數(shù)。
標(biāo)簽?zāi)0逯谱鳛槿缦拢?/font> 頁面模板內(nèi)容
<table width="650" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="ffcc00"> <tr> <td><b><a href="[!--bclassurl--]">[!--bclassname--]</a> <font color="#666666">(信息數(shù):[!--bnum--])</font></b></td> </tr> <tr> <td bgcolor="#ffffff"> [!--empirenews.listtemp--] <!--list.var1--> [!--empirenews.listtemp--] </td> </tr> </table> |
列表內(nèi)容模板(list.var)
<a href="[!--classurl--]">[!--classname--]</a> <font color="#666666">(信息數(shù):[!--num--])</font> |
|
|
|
|