-
APP應(yīng)用程序官網(wǎng)類網(wǎng)站織...
-
水上樂園設(shè)備類網(wǎng)站織夢...
-
中藥藥材百科資訊類網(wǎng)站...
-
環(huán)保設(shè)備研發(fā)制造類網(wǎng)站...
-
農(nóng)業(yè)機(jī)械設(shè)備類網(wǎng)站織夢...
-
車輛機(jī)油工業(yè)潤滑油類網(wǎng)...
-
辦公學(xué)習(xí)教程資訊類網(wǎng)站...
-
道路護(hù)欄交通設(shè)施類網(wǎng)站...
-
水性工業(yè)漆類企業(yè)網(wǎng)站織...
-
汽車配件類網(wǎng)站織夢模板...
-
網(wǎng)站建設(shè)營銷類網(wǎng)站織夢...
-
企業(yè)公司行業(yè)通用類網(wǎng)站...
-
攝影拍攝短視頻類網(wǎng)站織...
-
潮流資訊信息類網(wǎng)站織夢...
-
灶具電器設(shè)備類網(wǎng)站織夢...
-
園林景觀設(shè)計(jì)類網(wǎng)站織夢...
-
環(huán)保電動(dòng)掃地車類網(wǎng)站織...
-
園林綠化景觀建設(shè)類網(wǎng)站...
-
新媒體自媒體運(yùn)營資訊類...
-
LED顯示屏中英雙外貿(mào)類網(wǎng)...
織夢CMS5.7版本里默認(rèn)自帶有三種圖集樣式,模板名稱分別為article_image.htm、article_image_cl.htm、icle_image_new.htm,做圖集模板時(shí)發(fā)現(xiàn)dede默認(rèn)的圖集模板無法像文章一樣實(shí)現(xiàn)分頁樣式。
研究了一下發(fā)現(xiàn)織夢是可以實(shí)現(xiàn)這種樣式的

打開分頁標(biāo)簽文件一看,沒有縮略圖數(shù)據(jù)。那怎么辦。我們只能通過二次開發(fā)進(jìn)行新建一個(gè)專門用來圖集分頁調(diào)用的一個(gè)函數(shù),如果要改動(dòng){dede:pagebreak/}的話,在文章的相關(guān)分頁方式上可能會(huì)出現(xiàn)問題。因此建議我們自己新建函數(shù)以免出現(xiàn)其他問題。
解決方法:
打開/include/arc_archives_class.php文件
在最底部加入
/** * 獲得動(dòng)態(tài)頁面圖集中圖片縮略列表 ** @access public * @param int $totalPage 總頁數(shù)* @param int $nowPage 當(dāng)前頁數(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)頁面圖集中圖片縮略列表*www.sfmr1.cn* @access public * @param int $totalPage 總頁數(shù)* @param int $nowPage 當(dāng)前頁數(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;}




