类 CmsEditorHistoryListDirective

所有已实现的接口:
Directive, HttpDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

@Component public class CmsEditorHistoryListDirective extends AbstractTemplateDirective
editorHistoryList 内容正文历史列表查询指令

参数列表

parameter list

パラメータリスト

  • itemType:项目类型
  • itemId:项目id
  • fieldName:字段名
  • userId:用户id
  • orderType:排序类型,【asc:正序,desc:倒序】,默认为发布日期倒序
  • pageIndex:页码
  • pageSize:每页条数

返回结果

return result

戻り値page子属性:

使用示例

usage example

使用例

<@cms.editorHistoryList contentId=1 fieldName='text' pageSize=10><#list page.list as a>${a.text}<#sep>,</#list></@cms.editorHistoryList>

 <script>
  $.getJSON('${site.dynamicPath}api/directive/cms/editorHistoryList?contentId=1&fieldName='text'&pageSize=10&appToken=接口访问授权Token', function(data){
    console.log(data.page.totalCount);
  });
  </script>
 
  • 字段详细资料

  • 构造器详细资料

    • CmsEditorHistoryListDirective

      public CmsEditorHistoryListDirective()
  • 方法详细资料