• jeecms常用的标签


    友情链接

     <dt>友情链接:</dt> 
      [@cms_friendlink_list] 
      [#list tag_list as link] 
      <dd><a href="${link.domain}" onclick="$.get('${base}/friendlink_view.jspx?id=${link.id}')" target="_blank">${link.name}</a></dd> 
      [/#list] 
      [/@cms_friendlink_list] 
    </dl> 

    单个栏目

    [@cms_channel id='296']
            <div class="title-style">
                <span class="title">${tag_bean.name}</span>
                <a  href="${tag_bean.url}" class="more fr">更多</a>
            </div>
    [/@cms_channel]

    多个栏目生成目录菜单

    [@cms_channel_list]
           <li [#if !channel??]class="current"[/#if]><a href="${base}/">首页</a></li>
           [#list tag_list as c]
                <li [#if channel??&&channel.parent??&&channel.parent.id==c.id] class="current" [#else][#if channel??&&channel.id==c.id] class="current" [/#if][/#if]><a href="${c.url}">${c.name}</a></li>
           [/#list]
     [/@cms_channel_list]

    遍历多个内容标题(格式化时间)

    [@cms_content_list count='4' orderBy='4' channelId='297' titLen='15' append='...' dateFormat='MM-dd']
      [#list tag_list as a]
        <li title="${a.title}">
          <a href="${a.url}" >[@text_cut s=a.title len=titLen append=append/]<span class="date">${a.releaseDate?string(dateFormat)}</span></a>
        </li>
      [/#list]
    [/@cms_content_list]

    遍历多个内容标题带分页(格式化时间)

    <div class="info-box">
              [@cms_content_page titLen='15' sysPage='1' channelId='257' count='2'  append='...'  dateFormat='MM-dd']
                 [#list tag_list as a]
                    <a href="${a.url}" class="row">
                         <p>${a.title}</p>
                             <span class="date">${a.releaseDate?string(dateFormat)}</span>
                    </a>
                 [/#list]
                 [#list tag_pagination.list as a]
                             
                 [/#list]
              [/@cms_content_page]
    </div>

    常用标签以及标签属性

    • a_index                              遍历的时候坐标值  a是变量
    • /${res}                                /jeecmsv6/r/cms/www/default
    • ${resSys}                           /jeecmsv6/r/cms
    • [@cms_channel]               栏目对象标签

    • [@cms_channel_list]        栏目列表标签

    后台的地址如:http://localhost:8080/jeecmsv6/jeeadmin/jeecms/login.do
    默认用户名:admin 密码:password
    2、前台的地址如:http://localhost:8080/jeecmsv6/

    参考博客:https://blog.csdn.net/u012176984/article/details/45501771

  • 相关阅读:
    依靠MySQL(frm、MYD、MYI)数据文件恢复
    Centos7.4.1708安装Jumpserver
    Ubuntu16.04安装vmware pro 15激活码
    AIX系统命令
    virtualbox迁移虚拟机
    RedHat Enterprise7 搭建ISCSI
    RedHat Enterprise7 修改为CentOS的yum源
    关于Server2008 R2日志的查看
    Centos7.4.1708搭建syslog服务
    ElasticSearch第四步-查询详解
  • 原文地址:https://www.cnblogs.com/coder-lzh/p/9106548.html
Copyright © 2020-2023  润新知