In Empire CMS, the static list will have the problem that the page cannot be updated regularly, and the updated articles cannot be displayed in time. In order to solve this problem, which is not a problem, I wrote a tutorial.
The modified effect is: a link to a static webpage is displayed, but it is actually a webpage in dynamic mode, that is, pseudo-static.
The pseudo-static link is: http(s)://domain name/column file name/index_2.html, something like this!
Pseudo statically generated code
Just put it in the root directory of the website and run it
Put the pseudo-static code inside the empire pseudo-static.
Cancel dynamic page jump
Path:e/action/ListInfo/index.php

Set static mode pagination links
Empire backstage settings

Modify the displayed quantity
The total number of records displayed in the Empire backend setting is not effective. If you want to display all pagination, you can set the number of generated static pages to 9999.
If your paging form is dynamic, please set the number of static pages generated.
If you only want to display 200 items, you still need to modify the code
Path:e/action/ListInfo/index.php

200 is the total number of records and 3 is the number of pages.
over!
Now the link has been displayed, but there is a problem with the page markup. I don’t know what is going on, so I customized auser_InfoUsePagefunction to replace the previousInfoUsePagefunction
function user_InfoUsePage($num,$line,$page_line,$start,$page,$search,$add){
global $fun_r;
$num=(int)$num;
$line=(int)$line;
$page_line=(int)$page_line;
$start=(int)$start;
$page=(int)$page;
if($num<=$line)
{
return '';
}
$search=RepPostStr($search,1);
$snum=2;//最小页数
$totalpage=ceil($num/$line)-1;//取得总页数,如果遇到数量问题,请检查此处
$firststr='<span class="page now-page">'.$num.'</span>';
//上一页
if($page<>0)
{
$toppage='<a href="'.eReturnRewritePageLink($add,0).'">'.$fun_r['startpage'].'</a> ';
$pagepr=$page-1;
$prepage='<a href="'.eReturnRewritePageLink($add,$pagepr).'">'.$fun_r['pripage'].'</a>';
}
//下一页
if($page!=$totalpage-1)
{
$pagenex=$page+1;
$nextpage=' <a href="'.eReturnRewritePageLink($add,$pagenex).'">'.$fun_r['nextpage'].'</a>';
$lastpage=' <a href="'.eReturnRewritePageLink($add,$totalpage-1).'">'.$fun_r['lastpage'].'</a>';
}
$starti=$page-$snum<0?0:$page-$snum;
$no=0;
for($i=$starti;$i<$totalpage&&$no<$page_line;$i++)
{
$no++;
// echo $page ;
$pagenum=$i+1;
// echo $pagenum."\n";
if($page==$pagenum){
$is_1="<span class=\"page now-page\">";
$is_2="</span>";
$returnstr.=" ".$is_1.$pagenum.$is_2;
}elseif($page==0 && $pagenum==1){
$is_1="<span class=\"page now-page\">";
$is_2="</span>";
$returnstr.=" ".$is_1.$pagenum.$is_2;
}else{
$is_1='<a href="'.eReturnRewritePageLink($add,$i).'">';
$is_2="</a>";
$returnstr.=" ".$is_1.$pagenum.$is_2;
}
}
$returnstr=$firststr.$toppage.$prepage.$returnstr.$nextpage.$lastpage;
return $returnstr;
}Effect
