JEECMS模板置标使用手册(重新整理版) - 图文(6)

2019-08-29 17:56

CMS模板置标使用手册

二 新闻栏目.html

2.1栏目页新闻列表

您的位置:首页 > [#list channel.nodeList as n]${n.name}[#if n_has_next] > [/#if][/#list] >

循环获取栏目文章列表

[@cms_content_page channelId=channel.id count='4' titLen='15' append='...' orderBy='2' dateFormat='yyyy-MM-dd' channelOption='1']

[#list tag_pagination.list as a]

22

CMS模板置标使用手册

[/#list]

[/@cms_content_page]

翻页效果标签

2.2左边二级菜单效果

显示1层

[@cms_channel_list parentId=channel.id] [#list tag_list as c]

[/@cms_channel_list]

显示2层代码

[@cms_channel_list parentId=channel.id] [#list tag_list as c]

  • [/@cms_channel_list] [/#list]

    [/@cms_channel_list]

    显示3层代码

    ${channel.name}显示栏目名字

    [#if channel.parent?exists]

    23

    CMS模板置标使用手册

    [#if channel.parent.parent?exists]

    [#if channel.parent.parent.parent?exists]

    [#else]

    [@cms_channel_list parentId=channel.parent.parent.id] [#list tag_list as c]

    [/@cms_channel_list] [/#list]

    [/@cms_channel_list]

    [/#if] [#else]

    [@cms_channel_list parentId=channel.parent.id] [#list tag_list as c]

    [/@cms_channel_list] [/#list]

    [/@cms_channel_list]

    [/#if] [#else]

    [@cms_channel_list parentId=channel.id] [#list tag_list as c]

    24

    CMS模板置标使用手册

    [/@cms_channel_list] [/#list]

    [/@cms_channel_list] [/#if]

    2.3栏目页栏目本月排行

    栏目本月排行

      [@cms_content_list channelId=channel.id count='10' titLen='15' orderBy='2' channelOption='1']

      [#list tag_list as a]

      ${a.views!}

      href=\>[@text_cut s=a.title len=titLen append=append/]

      25

      CMS模板置标使用手册

      [/#list]

      [/@cms_content_list]

      channelId=channel.id 切换到哪个栏目就显示哪个栏目下的新闻排行

      三 新闻内容.html

      3.1新闻内容

      作者:${content.author!}

      来源:

      target=\本站原创'}

      [#if pagination.firstPage]

      摘要: [@text_cut s=content.description len='50' append='...'/]

      [/#if]

      [#if content.citedTitle?exists]引题:${content.citedTitle}[/#if] [#if content.editors?exists]编辑:${content.editors}[/#if] [#if content.pictureEditors?exists]图片编辑:${content.pictureEditors}[/#if]

      ${txt!}

      [#if pagination.firstPage]

      [#if content.citedTitle?exists]引题:${content.citedTitle}[/#if] [#if content.editors?exists]编辑:${content.editors}[/#if] [#if content.pictureEditors?exists]图片编辑:${content.pictureEditors}[/#if]

      26


  • JEECMS模板置标使用手册(重新整理版) - 图文(6).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

    下一篇:教学评估汇报材料

    相关阅读
    本类排行
    × 注册会员免费下载(下载后可以自由复制和排版)

    马上注册会员

    注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
    微信: QQ: