织梦DedeCMS新发布图集排序茬最前的方法
方法很简单,找到如下文件
include/taglib/channel/img.li
更多精彩就在: 51免费论文网|www.jxszl.com
b.php
大约在VIII0行左右
$GLOBAL[photoid]=0;
foreach($dtp->CTagsas$ctag)
修改为:
$GLOBAL[photoid]=0;
foreach(array_reverse($dtp->CTags)as$ctag)
做完上面更改后,图集在前台的顺序就更改成最新图片排在前面了.
注意事项:织梦默认图片内容页dede模板有:
article_image.htm
article_image_cl.htm
article_image_frame.htm
article_image_new.htm
上面的方法对article_image.htm.article_image_frame.htm有效果.对article_image_new.htm的大图有效果,但缩略图顺序还是新图片在最后.而对article_image_cl.htm没有效果,因为article_image_cl.htm中的图片调用是用js调用,需要更改js.
以上就是本文章的内容,希望对大家有所帮助.
原文链接:http://www.jxszl.com/biancheng/dedecms/75401.html
热门阅读