织梦判断栏目是否有下级菜单方法: {dede:field name=typeid runphp=yes} global $dsql; $sql = SELECT id From `dede_arctype` WHERE reid=@me And ishidden1 order by sortrank asc limit 0, 100 ; $row = $dsql-GetOne($sql); @me=is_array($row)?有下级:...
织梦dede评论最多的文章排行版代码调用,并且调用第一条评论内容 {dede:sql sql=SELECT url,arctitle,msg, count( * ) AS count FROM dede_feedback GROUP BY arctitle ORDER BY count DESC LIMIT 0,10} lia href=[field:url/][field:arctitle/]/a[field:msg...