类 TemplateSearchListDirective

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

@Component public class TemplateSearchListDirective extends AbstractTemplateDirective
templateSearchList 模板文件搜索列表指令

参数列表

parameter list

パラメータリスト

  • path:文件路径
  • word:搜索词

返回结果

return result

戻り値

  • list:文件列表
    @link 无效
    com.publiccms.common.tools.CmsFileUtils$FileSearchResult

使用示例

usage example

使用例

<@tools.templateSearchList path='/' word='script'><#list list as a>${a.path}<#sep>,</#list></@tools.templateSearchList>

<script>
 $.getJSON('${site.dynamicPath}api/directive/tools/templateSearchList?path=/&word=script&appToken=接口访问授权Token', function(data){
   console.log(data);
 });
 </script>
 
  • 构造器详细资料

    • TemplateSearchListDirective

      public TemplateSearchListDirective()
  • 方法详细资料