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)交流
  • 相关阅读:
    leetcode100
    leetcode237
    leetcode171
    leetcode122
    leetcode387
    2018-8-10-win10-uwp-如何打包Nuget给其他人
    2018-8-10-win10-uwp-如何打包Nuget给其他人
    2019-11-13-如何在国内发布-UWP-应用
    2019-11-13-如何在国内发布-UWP-应用
    2019-2-21-PowerShell-通过-WMI-获取设备厂商
  • 原文地址:https://www.cnblogs.com/linyusong/p/6505611.html
Copyright © 2011-2022 走看看