帝国CMS自带模板变量
上一篇:[!--info.pre--]
下一篇:[!--info.next--]
缺点:[!--info.pre--] 和 [!--info.next--] 中封装的 <a>标签的内容无法定制
灵动标签+SQL语句
1 |
[e:loop={"select * from [!db.pre!]ecms_news where id<'$navinfor[id]' and classid='$navinfor[classid]' order by id desc limit 1",1,24,0}] |
2 |
上一篇:< a href="<?=$bqsr[titleurl]?>" title="上一篇:<?=$bqr[title]?>" target="_blank"> ☜ </ a > |
4 |
[e:loop={"select * from [!db.pre!]ecms_news where id>'$navinfor[id]' and classid='$navinfor[classid]' order by id limit 1",1,24,0}] |
5 |
下一篇:< a href="<?=$bqsr[titleurl]?>" title="下一篇<?=$bqr[title]?>" target="_blank">☞</ a > |
纯灵动标签
01 |
[e:loop={'selfinfo',1,0,0,'id<'.$navinfor[id].'','id desc'}] |
05 |
?>">上一篇:<?=$bqr[title]?> |
13 |
[e:loop={'selfinfo',1,0,0,'id>'.$navinfor[id].'','id asc'}] |
17 |
?>">下一篇:<?=$bqr[title]?> |
动态调用
1 |
<a href= "/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=pre" >上一篇文章</a> |
2 |
<a href= "/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=next" >下一篇文章</a> |