织梦上一页下一页列表翻页单独调用的实现代码

找到这个文件

修改一下代码:
if($this->PageNo != 1)
{
$prepage.="
  • 上一页
  • \r\n";
    $indexpage="
  • 首页
  • \r\n";

    上一页\r\n";
    }
    else
    {
    $indexpage="
  • 首页
  • \r\n";

    }

    //下一页,未页的链接
    if($this->PageNo!=$totalpage && $totalpage>1)
    {
    $nextpage.="
  • 下一页
  • \r\n";
    $endpage="
  • 末页
  • \r\n";

    下一页\r\n";
    }
    else
    {
    $endpage="
  • 末页
  • \r\n";

    }




    然后添加以下红色代码:

    $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"/}
    这样就可以单独的调用上一页下一页了的功能了。

    相关文章

    织梦模板建站更换logo的操作步骤:1.找到logo图片所在文件位...
    织梦更适合企业建站,织梦拥有大量免费的漂亮模版,简单易用...
    在织梦中设置404页面的方法1.进入织梦网站后台管理界面,在界...
    解决织梦系统漏洞的方法有以下几种1.将data、templets、uplo...
    织梦网站漏洞的解决办法:1.删除install安装目录。2.定期进行...
    修改织梦建站变默认路径的方法:1.进入织梦cms;2.选择“系统...