织梦dedecms判断某个栏目是否有子栏目的方法:
{dede:field name=typeid runphp="yes"}
global $dsql;
$sql = "SELECT id From `dede_arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
$row = $dsql->GetOne($sql);
@me=is_array($row)?'有下级':'没下级';
{/dede:field}
本文标题:织梦教程:判断某个栏目是否有子栏目的方法
本文地址:https://www.128sj.com/jiaocheng/201809271957.html,转载请注明出处