帝国cms灵动标签调用上一章和下一章文章名称
发布时间:2021-10-27作者:帝国建站网
帝国cms内容页上下页的链接有标签可以直接用,但如果要调用上一章的名称和下一章的名称却发现没有标签可以用,下面说下怎样用灵动标签来调用章节名。
上一章节:
[e:loop={"select * from [!db.pre!]ecms_news where id<'$navinfor[id]' and classid='$navinfor[classid]' and checked=1 order by id desc limit 1",1,24,0}]
<a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_news where id<'$navinfor[id]' and classid='$navinfor[classid]' and checked=1 order by id desc limit 1",1,24,0}]
<a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a>
[/e:loop]
下一章节:
[e:loop={"select * from [!db.pre!]ecms_news where id>'$navinfor[id]' and classid='$navinfor[classid]' and checked=1 order by id limit 1",1,24,0}]
<a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a>
[/e:loop]
这里用了news表,要把news改成你要查询的表明,这样就把帝国模板上个章节和下个章节的文章名弄出来了。
上一章节:
[e:loop={"select * from [!db.pre!]ecms_news where id<'$navinfor[id]' and classid='$navinfor[classid]' and checked=1 order by id desc limit 1",1,24,0}]
<a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_news where id<'$navinfor[id]' and classid='$navinfor[classid]' and checked=1 order by id desc limit 1",1,24,0}]
<a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a>
[/e:loop]
下一章节:
[e:loop={"select * from [!db.pre!]ecms_news where id>'$navinfor[id]' and classid='$navinfor[classid]' and checked=1 order by id limit 1",1,24,0}]
<a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a>
[/e:loop]
这里用了news表,要把news改成你要查询的表明,这样就把帝国模板上个章节和下个章节的文章名弄出来了。
相关帝国教程
- 09-10phome_enewspublic 数据表字段解释(系统参数配置表)
- 10-01整理了一些帝国cms常见问题
- 05-06帝国CMS修改图片集一次只能上传10张照片的解决方法
- 01-22帝国CMS灵动标签调用当前信息TAGS
- 04-02帝国cms前台会员投稿编辑器上传图片自动加上水印的方法
- 12-07帝国CMS之esub()截取字段函数
- 12-08帝国cms自动刷新内容页代码
- 08-11帝国cms调用当前同级栏目方法
- 12-05帝国cms列表页随机调用数字
- 02-29phome_enewsvote 数据表字段解释(投票表)
- 07-04帝国CMS常见常用的SQL语句
- 02-18帝国cms用灵动标签调用推荐信息的企业名称
- 07-18帝国cms列表分页函数在哪里
- 04-14帝国cms灵动标签同时调用头条(1级、2级)、推荐(1级、2级)
- 11-13帝国CMS灵动标签调用当前栏目缩略图
- 09-05帝国CMS中[!--no.num--]标签的怎么用
- 04-22帝国CMS灵动标签调用反馈信息
- 09-27帝国CMS利用函数获取栏目字段
- 10-19帝国cms调用会员发布相关信息列表
- 09-26帝国CMS如何批量转移会员到另一个会员组