• dedecms 图集标签{dede:productimagelist} {dede:field name='imgurls'}&nbs



    1、{dede:productimagelist}{/dede:productimagelist}
    2、{dede:field name='imgurls'}{/dede:field}

    这两个图集标签有什么区别的?

    第1种标签我理解为 除了缩略图都可以用

    第2种我理解为缩略图用
    你像春天般温暖 | 浏览 865 次
    发布于2015-11-19 16:16 最佳答案
    您好,朋友。跟版网团队很高兴为您解答:
    这个问题的话可以具体看下官方的标签文档,下面是我帮你找到的。
    标签名称:productimagelist
    标记简介:
    功能说明:用于获取产品图片集
    适用范围:内容标记
    基本语法:
    {dede:productimagelist}
    dedecms <wbr>图集标签{dede:productimagelist} <wbr>{dede:field <wbr>name='imgurls'}&nbs
    {/dede:productimagelist}
    参数说明:

    底层模板字段:
    imgsrc :图片路径
    text :文字描述

    dede: 图集内容页从dede:field name='imgurls' 获得图片列表
    {dede:field name='imgurls' alt='图片输出区'}
    [field:alttext /]
    {/dede:field}
    上面的调用代码默认情况下只能调用一张大图,下面教大家怎样获得所有大图列表
    首先发布图片集的时候 “表现方式”选择第三种,即多缩略图样式
    然后我们把缩略图改成大图的方法:
    打开文件:include aglibchannelimg.lib.php
    查找

    $fields['imgsrc'] = $fields['ddimg'];
    改成

    $fields['imgsrc'] = $fields['imgsrc'];
    完成

    希望我的回答能够帮到您。跟版网-专业织梦模板定制下载站。
    https://zhidao.baidu.com/question/1606529466621227427.html
  • 相关阅读:
    Automatic Setup of a Humanoid
    SLAM——视觉里程计(一)feature
    JSP和EL和JSTL
    rework-发出你的心声
    bootstrap单选框复选框的使用
    bootstrap输入框组
    vue中改变数组或对象,页面没做出对应的渲染
    bootstrap面板的使用
    bootstrap列表组的使用
    bootstrap表格的使用
  • 原文地址:https://www.cnblogs.com/lxwphp/p/7731177.html
Copyright © 2020-2023  润新知