Get the App
SLTechnology News&Howtos  ›  Servers  › 

The Imperial CMS content page calls the implementation of the previous and next articles.

Shulou Source: shulou.com Published: 2022-06-02 01:52:13 10月04日 Update

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'}]

Tags: Previous code link content method dynamic empire sorry more tag article good practical concise word count character article way title knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Xiaomi MariaDB OPPO Reno Docker