织梦上一页下一页列表翻页单独调用的实现代码
发布时间:2020-12-14 03:57:21 所属栏目:Dedecms 来源:网络整理
导读:找到这个文件 修改一下代码: if($this->PageNo != 1) { $prepage.=" 上一页 rn"; $indexpage=" 首页 rn"; } else { $indexpage=" 首页 rn"; } //下一页,未页的链接 if($this->PageNo!=$totalpage $totalpage>1) { $nextpage.=" 下一页 rn"; $endpag
找到这个文件 修改一下代码: if($this->PageNo != 1) { $prepage.=" $indexpage=" } else { $indexpage=" } //下一页,未页的链接 if($this->PageNo!=$totalpage && $totalpage>1) { $nextpage.=" $endpage=" } else { $endpage=" } 然后添加以下红色代码: $plist = ''; if(preg_match('/down/i',$listitem)) $plist .= $downpage; if(preg_match('/index/i',$listitem)) $plist .= $indexpage; if(preg_match('/pre/i',$listitem)) $plist .= $prepage; if(preg_match('/pageno/i',$listitem)) $plist .= $listdd; if(preg_match('/next/i',$listitem)) $plist .= $nextpage; if(preg_match('/end/i',$listitem)) $plist .= $endpage; if(preg_match('/option/i',$listitem)) $plist .= $optionlist; if(preg_match('/info/i',$listitem)) $plist .= $maininfo; 最后在模板中调用以下代码: {dede:pagelist listitem="down"/} 这样就可以单独的调用上一页下一页了的功能了。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |