类 IndexContentDirective

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

@Component public class IndexContentDirective extends AbstractTaskDirective
indexContent 重建内容索引指令

参数列表

parameter list

パラメータリスト

  • id:内容id,ids为空时有效
  • ids:多个内容id

使用示例

usage example

使用例

<@task.indexContent id=1><</@task.indexContent>

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

  • 构造器详细资料

    • IndexContentDirective

      public IndexContentDirective()
  • 方法详细资料

    • execute

      public void execute(RenderHandler handler) throws IOException, freemarker.template.TemplateException
      参数:
      handler -
      抛出:
      IOException
      freemarker.template.TemplateException