dedecms织梦dede:channel标签里面调用文章列表

dedecms织梦dede:channel标签里面调用文章列表实现代码如下所示:

查看源码   打印代码帮助
01 {dede:channel type='son' noself='yes'}
02 [field:id runphp=yes]
03 global $dsql;
04 $sql = "SELECT arc.* FROM `dede_archives` arc where arc.arcrank>-1 AND arc.typeid = @me ORDER BY arc.id desc limit 10";
05 $dsql->SetQuery($sql);
06 $dsql->Execute('t');
07 $result = '';
08 while($row = $dsql->GetArray('t'))
09 {
10 $arcurl = GetOneArchive($row['id']);
11 $pubdate = MyDate('m-d',$row['pubdate']);
12