The Imperial CMS content page calls the implementation of the previous and next articles.
This article will explain in detail the implementation of calling the previous and next articles on the Imperial CMS content page. The editor thinks it is very practical, so I share it for you to make a reference. I hope you can get something after reading this article.
The specific methods are as follows:
First, dynamically call the link from the previous article to the next
The code is as follows:
Last article
Dynamically call the previous link
The code is as follows:
Next article
Dynamically call the next link
Second, smart tags and SQl statement calls
Previous link:
The code is as follows:
[eclass_r = {"select id,classid,newspath,filename,groupid,titleurl from [! db.pre!] ecms_". $class_r [$navin for [roomd]] ['tbname']. "where id" > previous article:
[/ e:loop]
[evelloop = {'selfinfo',1,0,0,'id >'. $navin for [id].','id asc'}]