無論在織夢dedecms圖片列表頁還是在內容列表頁中如果有很多的內容,都會分頁顯示,在專題節點內容列表頁中當然如果有很多內容的話,也是需要分頁顯示的,所以在使用織夢分頁標簽的時候需要做一些文件上的修改。
打開/include/arc.specview.class.php,找到
$ctag = $this->dtp->GetTag(“page”);
在下面插入以下代碼
if(!is_object($ctag))
{
$ctag = $this->dtp->GetTag(‘list’);
}
在專題list模板頁,使用以下代碼
{dede:list pagesize=’10′}
<a href=”[field:arcurl/]“>[field:title/]</a>
{/dede:list}
{dede:pagelist listitem=”info,index,end,pre,next,pageno” listsize=”4″/}
新聞熱點
疑難解答