全局表单里的图片字段怎么调用

迅睿框架 更新 2025-03-06 17:50:48 微信20333173

image

image

请问全局表单里的图片字段如何调用?

<div class="product-card" style="float: left; margin: 0 20px 20px 0;">

  <div class="card-inner">

      {form form=scsp order=inputtime num=10}

    <img src="图片地址" alt="{$t.title}" class="product-image">

    <div class="card-content">

      <h3 class="product-title">{$t.title}</h3>

      <div class="price-section">

        <span class="original-price">¥{$t.yuanjia}</span>

        <span class="discount-price">¥{$t.disconnect}</span>

      </div>

      <div class="buy-section">

        <a href="{$t.link}" class="buy-btn">直达购买</a>

        {/form}

        <span class="platform-tag">京东</span>

      </div>

    </div>

  </div>

</div>


方案

  • 迅睿官方创始人 #1 · 2025-03-06 17:37:12
    满意答案
    类别选择:image(在自定义字段管理里面看),名称填写:image(也在自定义字段管理里面),前缀:t,字段标签生成工具:https://www.xunruicms.com/doc/code/field.html
  • 微信20333173 #2 · 2025-03-06 17:50:48
    @迅睿官方创始人:感谢。已经解决问题

迅睿系统漏洞

百度AI批量检测敏感词
百度AI批量检测敏感词(2026-10-26)
优化长任务超时问题
泛解析站群系统
泛解析站群系统(2026-10-26)
添加子站时设置模板
GEO系统
GEO系统(2026-10-26)
修复抖音图文会话不持久:扩大 Cookie 域、会话 Cookie ...
GeoSeo收录宝
GeoSeo收录宝(2026-10-25)
优化插件日志等小细节 1 优化 爬虫监控月统计超200万数据容易...
迅睿工具箱
迅睿工具箱(2026-10-24)
修正页面显示样式
秒变内部站
秒变内部站(2026-10-23)
全站只有管理员身份可以访问
GeoSeo工具箱
GeoSeo工具箱(2026-10-23)
Schema信息数据兜底
AI文章生成器
AI文章生成器(2026-10-23)
关键词批量录入
网站监控
网站监控(2026-10-23)
状态码大于0,即认为服务器在线