{dede:channelartlist row=7 typeid=top currentstyle=current}{dede:field.typename/} [field:id runphp=yes] global $dsql;$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `dede_arctype`WHERE reid=@me And ishidden<>1 ORDER BY sortrank ASC LIMIT 0,10"; $dsql->SetQuery($sql); $dsql->Execute('t'); $result = ''; while($row = $dsql->GetArray('t')) { $typename = $row['typename']; $typeurl = GetOneTypeUrlA($row); $result .= "{$typename}"; } @me = $result; [/field:id] {dede:channel type=son noself=yes} [field:typename/] {/dede:channel} {/dede:channelartlist}
{dede:channelartlist row=7 typeid=top currentstyle=current}{dede:field.typename/} [field:id runphp=yes] global $dsql; $sql = "SELECT arc.*,addf.* FROM `dede_archives` arc LEFT JOIN `dede_addonarticle` addf ON arc.id=addf.aid WHERE arc.arcrank>-1 AND arc.typeid=@me ORDER BY arc.id DESC limit 0,10"; $dsql->SetQuery($sql); $dsql->Execute('t'); $result = ''; while($row = $dsql->GetArray('t')){ $arcrow = GetOneArchive($row['id']);$row['arcurl'] = $arcrow['arcurl'];$row['pubdate'] = MyDate('Y-m-d',$row['pubdate']);$result .= "时间:{$row['pubdate']}{$row['title']}文章内容:{$row['body']}";}@me = $result;[/field:id]{dede:channel type=son noself=yes}[field:typename/]{/dede:channel}{/dede:channelartlist}以上就是织梦多级栏目菜单调用代码的全部内容,希望对大家的学习和解决疑问有所帮助,也希望大家多多支持武林网。
新闻热点
疑难解答