颜言妍 發表於 2023-10-11 00:00:00

dedecms pagelist标签修改方法分享

<p>首页我们随便打开一个带有pagelist标签的页面,找到&nbsp;<br/><br/></p><div class="msgborder" id="phpcode6" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; "><br/>
        {dede:pagelist listitem=&quot;info,index,end,pageno&quot; listsize=&quot;5&quot; /}&nbsp;</div><p><br/>直接修改这里是没有用的,我们要找到相对应的文件,像这类文件都在include目录下,我们找到arc_listview.class.php,打开找到&nbsp;<br/><br/></p><div class="msgborder" id="phpcode7" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; "><br/>
        function GetPageListST($list_len,$listitem=&quot;index,end,pre,next,pageno&quot;,$pagelisttype=&#39;&#39;)&nbsp;</div><p><br/>这个函数就是分页函数了,这只是静态页面的如果要修改动态页面可以找到&nbsp;<br/><br/></p><div class="msgborder" id="phpcode8" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; "><br/>
        function GetPageListDM($list_len,$listitem=&quot;index,end,pre,next,pageno&quot;)&nbsp;</div><p><br/>这样你就可以随意修改了,我只修改一个地方,如&nbsp;<br/><br/></p><div class="msgborder" id="phpcode9" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; "><br/>
        $maininfo = &quot;<ul class=" list-paddingleft-2"><li><span class="pageinfo">共<strong>{$totalpage}</strong>页 www.jb51.net共有&quot;.$this-&gt;Fields[&#39;typename&#39;].&quot;手机主题&quot;.$this-&gt;TotalResult.&quot;条</span></li><li>rn&quot;; 这样就可以KO了。&nbsp;</li></ul></div>
頁: [1]
查看完整版本: dedecms pagelist标签修改方法分享