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