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 method of clicking on the page of an atlas realized by DEDECMS dream-weaving template

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces the method of DEDECMS dream weaving template to turn the page by clicking on the picture, which has a certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

DEDECMS dream template how to achieve atlas click picture to turn the page?

1. In order to achieve this function, we first need to obtain the current page number and the total page number of the picture page.

Edit the include/inc_archives_view.php file

Recommended study: dream weaving cms

(1) find function ParseDMFields and modify it as follows:

Function ParseDMFields ($pageNo,$ismake=1) {$this- > NowPage = $pageNo; / / get the current page number $this- > Fields ['cpagenum'] = $this- > NowPage; if ($this- > SplitPageFieldholders = "& & isset ($this- > Fields [$this- > SplitPageField]) {$this- > Fields [$this- > SplitPageField] = $this- > SplitFields [$pageNo-1];}

Notice that the following code has been added to get the current page number:

$this- > Fields ['cpagenum'] = $this- > NowPage

(2) find the function _ _ construct constructor and modify it to:

$this- > TotalPage = count ($this- > SplitFields);}

/ / get the total number of current pages

Thank you for reading this article carefully. I hope the editor can share the DEDECMS dream template to realize the method of clicking the picture page to turn the page. At the same time, I also hope you can support us, pay attention to the industry information channel, find the problem, and the detailed solution is waiting for you to learn!

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