sdcms的内容的上一篇一下篇的调用

来源:互联网 发布:知乎是什么时候成立的 编辑:程序博客网 时间:2024/04/26 13:26

使用sdcms的过程中分类文章的显示,上一篇下一篇,经常出不同分类的情况

 <span>上一篇:{sdcms:loop top="1" table="View_info" where="id<{sdcms:info_id} and classid={sdcms:info_classid} and ispass=1"}{eof}没有资料{/eof}<a href="{link}" [if {isurl}=1]target="_blank"[end if]>{title}</a>{/sdcms:loop} </span><span>下一篇:{sdcms:loop top="1"  table="View_info" where="id>{sdcms:info_id} and classid={sdcms:info_classid} and ispass=1" order="id"}{eof}没有资料{/eof}<a href="{link}" [if {isurl}=1]target="_blank"[end if]>{title}</a>{/sdcms:loop}


1 0