帝国CMS使用方法上下翻页页码调用方法集合

作者头像
6G站长网 本文作者

2026-4-22 阅读 15 约 2分钟读完

评论0

还在找帝国CMS使用方法上下翻页页码调用方法集合的靠谱教程?6G 站长网今天整理了帝国CMS使用方法上下翻页页码调用方法集合从入门到精通的完整指南,解决大家在学习帝国CMS使用方法上下翻页页码调用方法集合时 “步骤看不懂、操作易出错、效果不理想” 的核心问题,手把手教你做好帝国CMS使用方法上下翻页页码调用方法集合,新手也能一次学会。

帝国CMS自带模板变量

上一篇:[!--info.pre--]
下一篇:[!--info.next--]

缺点:[!--info.pre--] 和 [!--info.next--] 中封装的 <a>标签的内容无法定制

灵动标签+sql语句

[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}]
上一篇:<a href="<?=$bqsr[titleurl]?>" title="上一篇:<?=$bqr[title]?>" target="_blank">  &#9756;&nbsp; </a>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_news where id>'$navinfor[id]' and classid='$navinfor[classid]' order by id limit 1",1,24,0}]
下一篇:<a href="<?=$bqsr[titleurl]?>" title="下一篇<?=$bqr[title]?>" target="_blank">&#9758;</a>
[/e:loop]

纯灵动标签(来自网络未验证)

[e:loop={'selfinfo',1,0,0,'id<'.$navinfor[id].'','id desc'}]
<a href="<?php 
echo $bqsr[titleurl];
$pre='true';
?>">上一篇:<?=$bqr[title]?>
</a>
[/e:loop]
<?php 
if(empty($pre)){
echo "上一篇:很抱歉没有了";
}
?>
[e:loop={'selfinfo',1,0,0,'id>'.$navinfor[id].'','id asc'}]
<a href="<?php 
echo $bqsr[titleurl];
$next='true';
?>">下一篇:<?=$bqr[title]?>
</a>
[/e:loop]
<?php 
if(empty($next)){
echo "下一篇:很抱歉没有了";
}
?>

动态调用(已验证)

<a href="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=pre">上一篇文章</a>
<a href="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=next">下一篇文章</a>
上一篇 帝国7.5二次开发整合discuzX3.2同时登陆退出 下一篇 帝国CMS灵动标签判断字段为某值
评论
评论已关闭