dedecms织梦dede:channel标签里面调用文章列表实现代码如下所示:
{dede:channel type='son' noself='yes'} [field:id runphp=yes] global $dsql; $sql = "SELECt arc.* FROM `dede_archives` arc where arc.arcrank>-1 AND arc.typeid = @me ORDER BY arc.id desc limit 10"; $dsql->SetQuery($sql); $dsql->Execute('t'); $result = ''; while($row = $dsql->GetArray('t')) { $arcurl = GetoneArchive($row['id']); $pubdate = MyDate('m-d',$row['pubdate']); $result .= <<< TPL
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)