帝国CMS 如何调用文章的标题和简介到列表页面呢?
[!--title--] 标题 [!--smalltext--] 描述、简介 [!--titleurl--] 是标题链接
灵动标签调用例子:
[e:loop={"SELECT * FROM phome_ecms_news where classid in (2,3,4,5,6,7,8,9) and titlepic<>'' ORDER BY onclick desc limit 2",6,24,0}]
<a href="<?=$bqsr['titleurl']?>" target="_blank" class="item">
<div class="img"><img src="<?=$bqr['titlepic']?>"></div>
<p><?=$bqr['title']?></p>
<p><?=$bqr['smalltext']?></p>
</a>
[/e:loop]