在織夢列表頁中是肯定要使用pagelist標(biāo)簽的,但是有的時候也會因為一些css格式的問題會出現(xiàn)排列順序的問題,所以也要知道怎么樣修改pagelist標(biāo)簽。
在模板中找到pagelist標(biāo)簽:{dede:pagelist listitem="info,index,end,pageno" listsize="5" /}直接在這里面修改是沒有作用的,要找到相關(guān)的目錄修改才可以
打開include/arc_listview.class.php
找到function GetPageListST($list_len,$listitem="index,end,pre,next,pageno",$pagelisttype='')
這個函數(shù)就是分頁函數(shù)了,這只是靜態(tài)頁面的如果要修改動態(tài)頁面可以找到
function GetPageListDM($list_len,$listitem="index,end,pre,next,pageno")
這樣你就可以隨意修改了,我只修改一個地方,如
$maininfo = "<li><span class="pageinfo">共<strong>{$totalpage}</strong>頁 www.genban.org共有".$this->Fields['typename']."手機(jī)主題".$this->TotalResult."條</span></li>rn";