Loading... phpcms中想首页调取特定栏目的子栏目时,只需加if判断即可,如果有子栏目就循环调出,看代码: {pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"} {loop $data $r} {if $r['catid']==8} {loop subcat(8) $v} {$v[catname]} {/loop} {else} {$r[catname]} {/if} {/loop} {/pc} Last modification:September 21, 2022 © Allow specification reprint Like 如果觉得我的文章对你有用,请随意赞赏