-
齒輪設(shè)備類(lèi)網(wǎng)站織夢(mèng)模板...
-
中英雙語(yǔ)建材瓷磚裝飾類(lèi)...
-
新聞資訊游戲博客類(lèi)網(wǎng)站...
-
酒店民宿客房類(lèi)網(wǎng)站織夢(mèng)...
-
智能鎖具電子產(chǎn)品類(lèi)網(wǎng)站...
-
金融財(cái)經(jīng)貨幣資訊類(lèi)網(wǎng)站...
-
醫(yī)療器械診斷設(shè)備類(lèi)網(wǎng)站...
-
金屬工藝品加工廠家類(lèi)網(wǎng)...
-
環(huán)保家居家具類(lèi)網(wǎng)站織夢(mèng)...
-
離心風(fēng)機(jī)設(shè)備機(jī)械設(shè)備類(lèi)...
-
凈化水處理設(shè)備類(lèi)網(wǎng)站織...
-
婚紗攝影定制類(lèi)網(wǎng)站織夢(mèng)...
-
電子數(shù)碼音響類(lèi)網(wǎng)站織夢(mèng)...
-
新型智能礦山鉆機(jī)設(shè)備類(lèi)...
-
風(fēng)景攝影類(lèi)網(wǎng)站織夢(mèng)模板...
-
餐飲加盟培訓(xùn)管理類(lèi)網(wǎng)站...
-
紙糊模塑纖維成型企業(yè)類(lèi)...
-
旅游公司類(lèi)網(wǎng)站織夢(mèng)模板...
-
電子產(chǎn)品營(yíng)銷(xiāo)類(lèi)網(wǎng)站織夢(mèng)...
-
航運(yùn)造船廠設(shè)備類(lèi)網(wǎng)站織...
織夢(mèng)CMS5.7版本里默認(rèn)自帶有三種圖集樣式,模板名稱(chēng)分別為article_image.htm、article_image_cl.htm、icle_image_new.htm,做圖集模板時(shí)發(fā)現(xiàn)dede默認(rèn)的圖集模板無(wú)法像文章一樣實(shí)現(xiàn)分頁(yè)樣式。
研究了一下發(fā)現(xiàn)織夢(mèng)是可以實(shí)現(xiàn)這種樣式的

打開(kāi)分頁(yè)標(biāo)簽文件一看,沒(méi)有縮略圖數(shù)據(jù)。那怎么辦。我們只能通過(guò)二次開(kāi)發(fā)進(jìn)行新建一個(gè)專(zhuān)門(mén)用來(lái)圖集分頁(yè)調(diào)用的一個(gè)函數(shù),如果要改動(dòng){dede:pagebreak/}的話,在文章的相關(guān)分頁(yè)方式上可能會(huì)出現(xiàn)問(wèn)題。因此建議我們自己新建函數(shù)以免出現(xiàn)其他問(wèn)題。
解決方法:
打開(kāi)/include/arc_archives_class.php文件
在最底部加入
/** * 獲得動(dòng)態(tài)頁(yè)面圖集中圖片縮略列表 ** @access public * @param int $totalPage 總頁(yè)數(shù)* @param int $nowPage 當(dāng)前頁(yè)數(shù)* @param int $aid 文檔id* @return string*/function GetlitpicDM_list($totalPage,$nowPage,$aid){global $dsql,$sqlCt;$attlist="desclen|80";FillAttsDefault($ctag->CAttribute->Items,$attlist);extract($ctag->CAttribute->Items, EXTR_SKIP);if(!isset($this->addTableRow['imgurls'])) return ;$revalue = '';$dtp = new DedeTagParse();$dtp->LoadSource($this->addTableRow['imgurls']);$images = array(); if(is_array($dtp->CTags)){$pagenum=1;foreach($dtp->CTags as $ctag1){if($ctag1->GetName()=="img"){$litpic.='<LI><DIV class=img><A title="'. $ctag1->GetAtt('text').'" href="view.php?aid='.$aid.'&pageno='.$pagenum.'"><IMG style="BACKGROUND-IMAGE: url('.$ctag1->GetAtt('ddimg').')" src="'.$GLOBALS['cfg_templets_skin'].'/tukustyle/blankBg.gif" ></A></DIV><A href="view.php?aid='.$aid.'&pageno='.$pagenum.'">'.substr($ctag1->GetAtt('text'), 30).'</A></LI>';$pagenum++;}}}return $litpic;}/*** 獲得靜態(tài)頁(yè)面圖集中圖片縮略列表*m.sfmr1.cn* @access public * @param int $totalPage 總頁(yè)數(shù)* @param int $nowPage 當(dāng)前頁(yè)數(shù)* @param int $aid 文檔id* @return string*/function Getlitpic_list($totalPage,$nowPage,$aid){global $dsql,$sqlCt;$attlist="desclen|80";FillAttsDefault($ctag->CAttribute->Items,$attlist);extract($ctag->CAttribute->Items, EXTR_SKIP);if(!isset($this->addTableRow['imgurls'])) return ; $revalue = '';$dtp = new DedeTagParse();$dtp->LoadSource($this->addTableRow['imgurls']);$images = array();if(is_array($dtp->CTags)){$pagenum=1; foreach($dtp->CTags as $ctag1){if($ctag1->GetName()=="img"){if($pagenum==1){$litpic.='<LI><DIV class=img><A title="'. $ctag1->GetAtt('text').'" href="'.$this->NameFirst.'.'.$this->ShortName.'"><IMG style="BACKGROUND-IMAGE: url('.$ctag1->GetAtt('ddimg').')" src="'.$GLOBALS['cfg_templets_skin'].'/tukustyle/blankBg.gif" ></A></DIV><A href="'.$this->NameFirst.'_'.$pagenum.'.'.$this->ShortName.'">'.substr($ctag1->GetAtt('text'),0,30).'</A></LI>';}else{$litpic.='<LI><DIV class=img><A title="'. $ctag1->GetAtt('text').'" href="'.$this->NameFirst.'_'.$pagenum.'.'.$this->ShortName.'"><IMG style="BACKGROUND-IMAGE: url('.$ctag1->GetAtt('ddimg').')" src="'.$GLOBALS['cfg_templets_skin'].'/tukustyle/blankBg.gif" ></A></DIV><A href="'.$this->NameFirst.'_'.$pagenum.'.'.$this->ShortName.'">'.substr($ctag1->GetAtt('text'),0,30).'</A></LI>';}$pagenum++;}}}return $litpic;}


