Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report