dedecms织梦dede:channel标签里面调用文章列表
来源:本站原创
|时间:2021-08-05
|栏目:
dedecms|点击: 次
dedecms织梦dede:channel标签里面调用文章列表实现代码如下所示:
01 |
{dede:channel type = 'son' noself= 'yes' } |
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); |
08 |
while ($row = $dsql->GetArray( 't' )) |
10 |
$arcurl = GetOneArchive($row[ 'id' ]); |
11 |
$pubdate = MyDate( 'm-d' ,$row[ 'pubdate' ]); |
13 |
<dt><a href= "{$arcurl['arcurl']}" ><span>{$row[ 'title' ]}</span><span>{$pubdate}</span></a></dt> |
|