-
儀器儀表科技公司類網(wǎng)站...
-
人力資源管理類網(wǎng)站織夢(mèng)...
-
精工機(jī)械軸承生產(chǎn)廠家類...
-
中英雙語律師事務(wù)所類網(wǎng)...
-
財(cái)稅記賬工商注冊(cè)認(rèn)證類...
-
電腦系統(tǒng)軟件下載類網(wǎng)站...
-
玩具動(dòng)漫類網(wǎng)站織夢(mèng)模板...
-
展覽展會(huì)信息類網(wǎng)站織夢(mèng)...
-
電子元件電路板類網(wǎng)站織...
-
水利工程施工類網(wǎng)站織夢(mèng)...
-
手游APP軟件下載類網(wǎng)站織...
-
食品百貨英文外貿(mào)類網(wǎng)站...
-
裝飾建材公司類網(wǎng)站織夢(mèng)...
-
網(wǎng)站模板資源下載類網(wǎng)站...
-
鋼結(jié)構(gòu)崗?fù)I(yíng)銷型織夢(mèng)網(wǎng)...
-
蔬菜鮮果配送類網(wǎng)站織夢(mèng)...
-
貂絨大衣服裝設(shè)計(jì)類網(wǎng)站...
-
儀器分析儀類網(wǎng)站織夢(mèng)模...
-
營(yíng)銷型無縫鋼管定制生產(chǎn)...
-
物流快運(yùn)速遞類網(wǎng)站織夢(mèng)...
打開/include/arc.listview.class.php文件
找到
$this->ParseTempletsFirst();
在它上面加入
if($this->PageNo>1){$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_article2.htm";$this->dtp->LoadTemplate($tempfile);}
添加之后,在頁數(shù)大于1時(shí),織夢(mèng)就會(huì)調(diào)用list_article2.htm來作為列表頁模板了。
添加以上代碼后,在動(dòng)態(tài)瀏覽欄目時(shí)已可以實(shí)現(xiàn),但會(huì)發(fā)現(xiàn)生成欄目靜態(tài)HTML頁后,仍然沒有達(dá)到預(yù)期目的,
找到
$this->ParseDMFields($this->PageNo,1);
在它上面加入
if($this->PageNo>1){$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_article2.htm";$this->dtp->LoadTemplate($tempfile);$this->ParseTempletsFirst();}
如果一個(gè)欄目有多個(gè)列表頁模板,難道每個(gè)欄目列表頁的第二頁都用list_article2.htm來作為模板
找到
$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/list_article2.htm";
改為
$tmpdir = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir'];$tempfile = str_replace("{tid}",$this->TypeID,$this->Fields['templist']);$tempfile = str_replace("{cid}",$this->ChannelUnit->ChannelInfos['nid'],$tempfile);$tempfile = $tmpdir."/".$tempfile;$tmpfile2 = substr($tempfile,0,-4);$tempfile = $tmpfile2."2.htm";
現(xiàn)在就會(huì)自動(dòng)去獲取列表頁模板后面加了2的模板,例如列表頁的模板是list_image.htm,那么第二頁的模板就是list_image.htm。