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)交流
  • 相关阅读:
    PHP多台服务器跨域SESSION共享
    php发送post请求到nodejs服务器
    xampp使用phpunit
    MarkdownPad 2
    php安装memcache注意事项
    yii 基础版用rbac-plus
    yii2高级版账号密码问题
    yii2 rbac-plus的使用
    manjaro-VM虚拟机vmmon错误
    Java并发包中的线程池ThreadPoolExecutor
  • 原文地址:https://www.cnblogs.com/linyusong/p/6406551.html
Copyright © 2011-2022 走看看