4、灵动标签调用(写入以上关联标题ID:下面的是写入了两个ID:1和2) ①内容模板--适当位置放入以下代码 [e:loop={"select * from [!db.pre!]ecms_news where titleid in (1,2) and id<>$navinfor[id] order by newstime desc limit 10",0,24,0}] <?=$bqr['title']?>
[/e:loop] 注释;id<>$navinfor[id]为在当前文章时排除调用当前文章
②列表模板--适当位置放入以下代码 [e:loop={"select * from [!db.pre!]ecms_news where titleid in (1,2) order by newstime desc limit 10",0,24,0}] <?=$bqr['title']?>
[/e:loop]
或
[e:loop={'news',10,18,0,'titleid in (1,2)','newstime DESC'}] <?=$bqr['title']?>