当前位置:
k262电脑网 >
网络知识 > 发布时间:2025-06-24 21:08 文章来源于网友投稿,仅供参考!
DEDECMS首页和列表页调用图片集多张图片的办法
dede:arclist 标签调用和dede:list 列表调用
2 | [field: id function = "Getimg(@me,80,80,7)" /] |
|
文章内页调用
80和80和7分别是要显示图片的宽度(省略为110)和高度(省略为110)和调用张数(省略为所有((0)),
include/cmon.func.php增加一函数
02 | function Getimg($aid,$imgwith=110,$imgheight=110,$num=0) |
46 |
$title=$ctag>GetAtt( 'text' ); |
48 |
$imglist.= '<li><a title="' .$title. '" href="/plus/viephp?aid=' .$ id . '"><img src="' .$bigimg. '" width="' .$imgwith. '" height="' .$imgheight. '" alt="' .$title. '"></a></li>' ; |
|
上一篇:织梦CMS友情链接调用方法技巧大全
下一篇:织梦(dedecms)优化之更改RSS、sitemap路径至根目录