搜索带有标签标题的页面
Search for pages tagged with a tag title
为了在 AEM 查询生成器中获取带有特定标签的页面,我们将按照此文档进行操作 (https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/querybuilder-api.html)
path=/content/...
type=cq:Page
tagid=marketing:interest/product
tagid.property=jcr:content/cq:tags
但是我们如何在不使用上面的整个标签 ID 或完整路径的情况下获得具有相同标签标题的页面?
例如
path=/content/...
type=cq:Page
tagtitle=product
tagid.property=jcr:content/cq:tags
你可以使用类似的东西:
JCR 赞:
path=/content/..
type=cq:Page
property=jcr:content/@cq:tags
property.value=%tagname
property.operation=like
这将搜索值以 "product" 结尾的 cq:tags 属性。
查看更多关于 jcr:like 函数的信息。
另一种可能的解决方案:
全文搜索:
path=/content/somesite
type=cq:Page
fulltext.relPath=jcr:content/@cq:tags
fulltext=tagname
详细了解 jcr:contains 函数
为了在 AEM 查询生成器中获取带有特定标签的页面,我们将按照此文档进行操作 (https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/querybuilder-api.html)
path=/content/...
type=cq:Page
tagid=marketing:interest/product
tagid.property=jcr:content/cq:tags
但是我们如何在不使用上面的整个标签 ID 或完整路径的情况下获得具有相同标签标题的页面? 例如
path=/content/...
type=cq:Page
tagtitle=product
tagid.property=jcr:content/cq:tags
你可以使用类似的东西:
JCR 赞:
path=/content/..
type=cq:Page
property=jcr:content/@cq:tags
property.value=%tagname
property.operation=like
这将搜索值以 "product" 结尾的 cq:tags 属性。 查看更多关于 jcr:like 函数的信息。
另一种可能的解决方案:
全文搜索:
path=/content/somesite
type=cq:Page
fulltext.relPath=jcr:content/@cq:tags
fulltext=tagname
详细了解 jcr:contains 函数