联系官方销售客服

1835022288

028-61286886

分享经验 版主:论坛审计组
迅睿如何快速的创建零碎调用资料
类型:迅睿CMS 更新时间:2024-12-16 10:25:01 自定义字段 网站信息

迅睿如何快速的创建零碎调用资料?

我们在制作模板的时候,尤其是首页,会有很多零碎的信息

为了方便修改,通常都会做成一个个字段

但是一个个去创建又有点繁琐,那么这时候可以用 FTABLE 填表字段

设置 - 网站信息 - 自定义字段 - FTABLE 填写表格

比如我这里的字段 是 block 


以下内容放在 header.html  公共头部文件
<?php
        $setblock = dr_site_value('block');
        $block=[];
        foreach ($setblock as $t) {
            $block[$t[1]] = $t[3];
        }
?>

调用时可以直接写  {$block['标识符']}


自定义字段导入

{"name":"碎片","fieldname":"block","fieldtype":"Ftable","isedit":"1","ismain":"1","issystem":"0","ismember":"1","issearch":"0","disabled":"0","setting":{"option":{"is_add":"1","is_first_hang":"0","count":"","first_cname":"","hang":{"1":{"name":""},"2":{"name":""},"3":{"name":""},"4":{"name":""},"5":{"name":""}},"field":{"1":{"type":"1","name":"标识符","width":"140","option":""},"2":{"type":"1","name":"备注【自己看的】","width":"200","option":""},"3":{"type":"1","name":"文本【前端显示】","width":"","option":""},"4":{"type":"0","name":"","width":"","option":""},"5":{"type":"0","name":"","width":"","option":""},"6":{"type":"0","name":"","width":"","option":""},"7":{"type":"0","name":"","width":"","option":""},"8":{"type":"0","name":"","width":"","option":""},"9":{"type":"0","name":"","width":"","option":""},"10":{"type":"0","name":"","width":"","option":""},"11":{"type":"0","name":"","width":"","option":""},"12":{"type":"0","name":"","width":"","option":""},"13":{"type":"0","name":"","width":"","option":""},"14":{"type":"0","name":"","width":"","option":""},"15":{"type":"0","name":"","width":"","option":""},"16":{"type":"0","name":"","width":"","option":""},"17":{"type":"0","name":"","width":"","option":""},"18":{"type":"0","name":"","width":"","option":""},"19":{"type":"0","name":"","width":"","option":""},"20":{"type":"0","name":"","width":"","option":""},"21":{"type":"0","name":"","width":"","option":""},"22":{"type":"0","name":"","width":"","option":""},"23":{"type":"0","name":"","width":"","option":""},"24":{"type":"0","name":"","width":"","option":""},"25":{"type":"0","name":"","width":"","option":""},"26":{"type":"0","name":"","width":"","option":""},"27":{"type":"0","name":"","width":"","option":""},"28":{"type":"0","name":"","width":"","option":""},"29":{"type":"0","name":"","width":"","option":""},"30":{"type":"0","name":"","width":"","option":""}},"attachment":"0","image_reduce":"","width":"","css":""},"validate":{"xss":"1","required":"0","pattern":"","errortips":"","check":"","filter":"","tips":"","formattr":""},"is_right":"0"},"displayorder":"0"}



image

image

image


回帖
  • SEM技术网
    #1楼    SEM技术网
    2023-12-26 00:13:18
    Chrome 0
    看一看看一看看一看看一看
  • jlmolpklo
    #2楼    jlmolpklo
    2024-01-29 17:22:42
    Chrome 0
    看一看看一看看一看看一看
  • 秦
    #3楼    秦
    2024-01-30 01:21:54
    三星手机 0
    看看看看看看
  • 小飞鸡。
    #4楼    小飞鸡。
    2024-01-30 11:26:10
    Chrome 0
    看一看看一看看一看看一看
  • quinn
    #5楼    quinn
    2024-02-25 10:23:11
    Chrome 0
    看看看看看看看看
  • 大鱼
    #6楼    大鱼
    2024-03-20 22:55:48
    Chrome 0
    看一看看一看看一看看一看
  • 天涯模板开发
    #7楼    天涯模板开发
    2024-03-21 10:22:30
    Chrome 0
    看一看看一看看一看看一看
  • 晕菜菜
    #8楼    晕菜菜
    2024-03-21 18:35:19
    Chrome 0
    学习学习学习学习·········································
  • 吃不痴
    #9楼    吃不痴
    2024-03-21 22:31:14
    Chrome 0

    学习学习学习学习·········································

  • user_falle
    #10楼    user_falle
    2024-03-25 09:59:40
    Chrome 0
    看一看看一看
  • 晕菜菜
    #11楼    晕菜菜
    2024-03-29 23:14:04
    Chrome 0
    学习,谢谢楼主分享
  • 映雪
    #12楼    映雪
    2024-04-30 16:47:23
    Chrome 0
    看一看看一看看一看看一看
  • 木木建站
    #13楼    木木建站
    2024-05-06 10:02:31
    Chrome 0
    向dalao学习 向dalao学习
  • 维嘉
    #14楼    维嘉
    2024-05-09 09:22:46
    Chrome 0
    查看一下查看一下查看一下
  • miniidea
    #15楼    miniidea
    2024-05-15 18:58:36
    Chrome 0
    看一看看一看看一看看一看
  • 俊杰
    #16楼    俊杰
    2024-06-17 14:58:32
    Chrome 0
    进来学习一下的,支持支持
  • 不停游的鱼
    #17楼    不停游的鱼
    2024-06-19 12:51:28
    Chrome 0
    • 看一看看一看看一看看一看
  • nemovip
    #18楼    nemovip
    2024-06-23 11:53:09
    Chrome 0
    看一看看一看看一看看一看
  • hiker
    #19楼    hiker
    2024-06-23 16:41:49
    Chrome 0
    矮油不错哦矮油不错哦
  • 1239
    #20楼    1239
    2024-07-04 23:38:44
    Chrome 0

    看一看看一看看一看看一看

  • joyo
    #21楼    joyo
    2024-07-04 23:45:56
    Chrome 0
    矮油不错哦
  • tunan
    #22楼    tunan
    2024-07-06 14:28:26
    Chrome 0
    看一看看一看看一看看一看
  • 天客隆模板网
    #23楼    天客隆模板网
    2024-07-09 16:17:43
    Edge 0
    看一看看一看看一看看一看
  • 凌云大大
    #24楼    凌云大大
    2024-12-09 14:23:06
    Chrome 0
    • 看一看看一看看一看看一看
  • hiker
    #25楼    hiker
    2024-12-16 10:25:01
    Chrome 0
    看一看看一看看一看看一看