{pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
<a href="{siteurl($siteid)}">首页</a>
{loop $data $r}<!-- 一级栏目循环开始 -->
<a href="{$r[url]}">{$r[catname]}</a>
{if $r[arrchildid]} <!--是否有子栏目-->
{pc:content action="category" catid="$r[catid]" num="15" siteid="$siteid" order="listorder ASC" return="data2"}
{loop $data2 $v}<!--子栏目循环开始-->
<a href="{$v[url]}">{$v[catname]}</a>
{/loop}<!--子栏目循环结束-->
{/pc}
{/if}
{/loop}<!-- 一级栏目循环结束-->
{/pc}
PHPCMS全局循环调用二级类目导航
Find Your Interest
- So Darn Good
- Stencil Store Challenge
- Github and Open-source Is a Boon for the Underprivileged
- Github and Open-source Is a Boon for the Underprivileged
- 实时预览敢让你敲 <script>:自研 Markdown 渲染器的「先转义后拼装」
- Would you trust an AI bot to find the fix for vulnerabilities in your code?
- What's left for infrastructure-as-code after AI moves in?
- Just Visiting
- Applying Preact minification tricks to CSS
- How to Build an Accordion-Menu using CSS and a bit of jQuery





