zoukankan      html  css  js  c++  java
  • dedecms 后台添加新字段

    位置在 频道模型>内容模型管理 > 更改内容模型>普通文章添加字段

    添加后的字段代码:

    <field:body itemname="文章内容" autofield="0" notsend="0" type="htmltext" isnull="true" islist="1" default=""  maxlength="" page="split">    
    </field:body>    
    <field:youshi itemname="优势" autofield="1" notsend="0" type="multitext" isnull="true" islist="1"  maxlength="250" page="">
    </field:youshi>
    <field:zhiwei itemname="职位" autofield="1" notsend="0" type="text" isnull="true" islist="1" default=""  maxlength="250" page="">
    </field:zhiwei>
    <field:zhiwu itemname="职务" autofield="1" notsend="0" type="text" isnull="true" islist="1" default=""  maxlength="250" page="">
    </field:zhiwu>
    <field:sc itemname="擅长" autofield="1" notsend="0" type="text" isnull="true" islist="1" default=""  maxlength="250" page="">
    </field:sc>
    <field:jingyan itemname="从医经验" autofield="1" notsend="0" type="multitext" isnull="true" islist="1"  maxlength="250" page="">
    </field:jingyan>

    模板调用代码为:

    {dede:arclist idlist='4' row="1" channelid="1" addfields="zhiwei,zhiwu,sc"}    
        [field:title/] <!--标题-->
        [field:zhiwei/]<!--职位-->
        [field:zhiwu/]<!-- <p>职务</p> -->
        
    <p>擅长:[field:sc function='(strlen("@me")>95?cn_substr("@me",95)." …":"@me")'/]</p>
    <!--擅长-->  
    或者
    <p class="p3"><b>擅长:</b>[field:sc function="cn_substr(@me,56)"/]... <a href="[field:arcurl/]" target="_blank">[详情]</a></p>    
    {/dede:arclist}    
    转载请注明出处: 欢迎留言或qq(1090413588)交流
  • 相关阅读:
    Core Animation简介
    objective-c 常用函数、变量
    NSString判断纯数字
    自定义对话框AlterView
    IOS 6 自动布局 入门-1(IOS中autolayout和之前版本autoresize的差异)
    真机调试问题 错误集合
    block使用小结、在arc中使用block、如何防止循环引用
    View和viewController的生命周期
    IOS侧滑和webview
    Linker Error、MRC与ARC、导航条背景
  • 原文地址:https://www.cnblogs.com/linyusong/p/6505611.html
Copyright © 2011-2022 走看看