两层的是这么实现的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下全部子级栏目和子级栏目下对应的全部文章的调用。
|