兩層的是這麼實現的web
1
2
3
4
5
6
7
8
9
10
11
|
{pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
<
a
href
=
"{siteurl($siteid)}"
title
=
"首頁"
>首 頁</
a
>
{loop $data $k $r}
<
a
href
=
"{$r[url]}"
title
=
"{$r[catname]}"
class
=
""
>{$r[catname]}</
a
>
{pc:content action="category" catid="$k" num="25" siteid="$siteid" order="listorder ASC"}
{loop $data $v}
<
a
href
=
"{$v[url]}"
title
=
"{$r[catname]}"
>{$v[catname]}</
a
>
{/loop}
{/pc}
{/loop}
{/pc}
也可用來調用指定ID下全部子級欄目和子級欄目下對應的全部文章的調用。
|