aem - AEM 6.2:: 使用特定标签搜索 cq:Page 和 dam:Asset 并按 jcr:created 排序
问题描述
我正在尝试创建 PredicateGroup 来搜索相应路径下的所有 cq:Page 和 dam:Asset 。此外,这些节点使用特定标签进行标记,并按 jcr:created 排序。
这是我写的:
group.1_group.p.and=true
group.1_group.path=/content/some/path
group.1_group.type=cq:Page
group.1_group.1_property=@jcr:content/cq:tags
group.1_group.1_property.value=root:some/tag
group.p.or=true
group.2_group.p.and=true
group.2_group.path=/content/dam/some/path
group.2_group.type=dam:Asset
group.2_group.1_property=@jcr:content/metadata/cq:tags
group.2_group.1_property.value=root:some/tag
它不适用于查询调试器。我还使用 lastModified date 查看了这个 URL Search DAM assets and Cq pages | QueryBuilder,我不知道我做错了什么。现在,我还没有添加排序条件,因为我正在尝试一步一步地进行。
提前致谢
解决方案
推荐阅读
- api - Nestjs @Redirect() 装饰器:无法覆盖 url
- python - 这是打印 x 次 n 次的正确代码吗?
- mysql - sudo supervisorctl 状态:gumi gunicorn ERROR(生成错误)
- python - 如何限制正则表达式 python 中的空格?
- c# - 在 Selenium 中发送密钥并摆脱 Switch
- java - Intellij Idea Java Android 项目中的数据绑定
- javascript - Next-Auth:单击登录重定向以验证不起作用后
- javascript - React 图表库是否可以有多个活动的粘性工具提示?
- mysql - MySQL - 按 ID 分组的列中的每个值都是 0
- spring - 如何在 Spring 反应式 Webflux 中从 ServerRequest 中提取字符串数组