业务经理

微信扫描以上二维码

028-61286886

技术咨询

创建的栏目模型自定义字段 应该怎么调用

迅睿框架 更新 2021-08-09 18:56:05 五金冲压件

创建的栏目模型自定义字段。

划分好栏目以后,内页,还有搜索页都可以用,

但是首页的话 应该怎么调用

{$t.字段名}

不会显示

方案

  • 迅睿框架创始人 #1 · 2020-04-13 19:04:15
    满意答案
  • 刘三哥 #2 · 2020-04-13 19:05:30

    11、调用栏目1的内容和他模型字段的内容

    {module  module=news catid=1 more=1}
    .....
    {/module}
    参数more=1表示调用模型字段,必须存在catid,否则不知道调用哪个栏目的模型字段


  • 五金冲压件 #3 · 2020-04-13 19:07:04
     {module module=qyfw order=updatetime catid=7 num=1 more=1}   
      <div class="index-shizi-left">  
        <div class="flex">
          <div style="width:40%; margin-top: 20px" class="index-shizi-left-img">
            <img class="radius" src="{dr_thumb($t.thumb, 140, 140)}" width="140" height="140" alt=""/>
          </div>
          <div style="width:60%">
            <h3 class="white">{dr_strcut($t.title, 20)}</h3>
            <div class="white top15" style="font-size: 15px; line-height: 30px">
              {dr_strcut($t.jscj, 300)}
            </div>
          </div>
        </div>
      
        <h4 class="white center" style="margin-top: 30px">“{$t.zuoyouming}”</h4>
        <div class="center top20" style="margin-top: 30px">
          <button class="btn btn-info" style="width: 160px; line-height: 30px; font-size: 20px"><a href="{$t.url}">了解更多</a></button>
        </div>
      </div>
      {/module}

    image
    刘三哥这里都不会显示
  • 五金冲压件 #4 · 2020-04-13 19:08:12

    image
    五金冲压件
  • 每天吃包子 #5 · 2020-04-13 19:08:48
    万能的侦探{$debug}这些必须是主表字段
  • 五金冲压件 #6 · 2020-04-13 19:09:24
    是的,主表字段每天吃包子
  • 五金冲压件 #7 · 2020-04-13 19:10:12

    image
    每天吃包子
  • 若凌 #8 · 2020-04-13 19:10:34
    这个三个字段是否归属于栏目7?
  • 五金冲压件 #9 · 2020-04-13 19:10:56
    属于,在内页调用的出来。若凌
  • 五金冲压件 #10 · 2020-04-13 19:11:37
    属于,在内页调用的出来。已经归类到下面,而且发布的时候也会显示,内容页都会显示
    image
    若凌
  • 阿库娅 #11 · 2020-04-13 19:20:31
    • 模板标签自动生成器

      必火!模板制作的必备插件,自动生成字段的模板标签,解决新手老手调用困难问题

  • 五金冲压件 #12 · 2020-04-13 19:21:45

    image
    debug 标签 可以看到 这个是可用字段 ,但是{$t.jscj} 不管用 怎么搞啊阿库娅
  • 五金冲压件 #13 · 2021-08-09 18:56:05
    迅睿框架创始人:参考文档:《模块内容列表循环》

迅睿系统漏洞

图片格式转化
图片格式转化(2026-10-17)
修复百度编辑器里的内容图片没有转换为webp格式 历史文章列表不显...
站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
图书阅读系统
图书阅读系统(2026-10-14)
全站移动端样式适配 首页分类 Tab 横滑容器,左右渐变滚动提示 ...
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;