织梦判断栏目是否有下级菜单方法:
01{dede:field name=typeid runphp='yes'}
02 
03global $dsql;
04 
05$sql = "SELECT id From `dede_arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
06 
07$row = $dsql->GetOne($sql);
08 
09@me=is_array($row)?'有下级':'无下级';
10 
11{/dede:field}