zoukankan      html  css  js  c++  java
  • jeecms各种标签类(大部分,并没有包含一些其他的如text_cut html_cut之类)

    软件包 comjeecms.cms.action.directive

     

    类摘要
    ChannelDirective 栏目对象标签
    ChannelListDirective 栏目列表标签
    ChannelPageDirective 栏目分页标签
    CmsAdvertisingDirective 广告对象标签
    CmsCommentListDirective 评论列表标签
    CmsCommentPageDirective 评论分页标签
    CmsFriendlinkCtgListDirective 友情链接类别列表标签
    CmsFriendlinkListDirective 友情链接类别列表标签
    CmsGuestbookCtgListDirective 专题列表标签
    CmsGuestbookListDirective 评论列表标签
    CmsGuestbookPageDirective 留言分页标签
    CmsModelDirective 模型对象标签
    CmsTopicListDirective 专题列表标签
    CmsTopicPageDirective 专题分页标签
    CmsVoteDirective 投票标签
    CmsVoteListDirective 网上调查列表标签
    ContentDirective 内容对象标签
    ContentListDirective 内容列表标签
    ContentPageDirective 内容分页标签
    ContentTagListDirective TAG列表标签
    ContentTagPageDirective TAG分页标签
    PaginationDirective 翻页包含标签
    ScoreGroupDirective 评分组对象标签

    、通过这些类可以找到标签使用时的输入参数和输出参数。

    输出参数有tag_bean,tag_list,tag_pagition

    com.jeems.common.web.freemarker

    DirectiveUtils类中定义:

    /**
    * 输出参数:对象数据
    */
    public static final String OUT_BEAN = "tag_bean";
    /**
    * 输出参数:列表数据
    */
    public static final String OUT_LIST = "tag_list";
    /**
    * 输出参数:分页数据
    */
    public static final String OUT_PAGINATION = "tag_pagination";

    参数对应的类型:

    找到相应标签类中这样的代码,可以看到输出的是tag_list的名字,它的类型是context类型,打开Content类,看到可以输出的值.url,.name,.title.......

    List<Content> list = getList(params, env);

    pamWrap.put(OUT_LIST, DEFAULT_WRAPPER.wrap(list));

    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    vue富文本编辑器
    vue图片上传组件
    vue全局使用axios插件请求ajax
    vue项目初始化时npm run dev报错webpack-dev-server解决方法
    vue axios使用form-data的形式提交数据
    react-keep-alive
    create-react-app 兼容 ie9
    next-定义路由
    next-支持css样式和按需加载antd
    react-错误边界
  • 原文地址:https://www.cnblogs.com/Jeely/p/11214571.html
Copyright © 2011-2022 走看看