-
装修类网站织梦模板(自...
-
餐饮管理类网站织梦模板...
-
酒店民宿客房类网站织梦...
-
家装建材瓷砖类网站织梦...
-
汽车销售展示类网站织梦...
-
淘宝美工摄影装修类网站...
-
不锈钢管材制品类网站织...
-
钢结构岗亭营销型织梦网...
-
LED广告显示屏类网站织梦...
-
电子数码音响类网站织梦...
-
律师事务所网站织梦模板...
-
美容化妆类网站织梦模板...
-
工商注册代理记账类网站...
-
精工机械轴承加工类网站...
-
军事头条资讯类网站织梦...
-
智能工业设备设计类网站...
-
园林石业装饰石材类网站...
-
不锈钢网定制生产类网站...
-
视觉创意展位设计类网站...
-
除铁器金属探测仪设备类...
织梦CMS5.7版本里默认自带有三种图集样式,模板名称分别为article_image.htm、article_image_cl.htm、icle_image_new.htm,做图集模板时发现dede默认的图集模板无法像文章一样实现分页样式。
研究了一下发现织梦是可以实现这种样式的

打开分页标签文件一看,没有缩略图数据。那怎么办。我们只能通过二次开发进行新建一个专门用来图集分页调用的一个函数,如果要改动{dede:pagebreak/}的话,在文章的相关分页方式上可能会出现问题。因此建议我们自己新建函数以免出现其他问题。
解决方法:
打开/include/arc_archives_class.php文件
在最底部加入
/** * 获得动态页面图集中图片缩略列表 ** @access public * @param int $totalPage 总页数* @param int $nowPage 当前页数* @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;}/*** 获得静态页面图集中图片缩略列表*www.91084.com* @access public * @param int $totalPage 总页数* @param int $nowPage 当前页数* @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;}