활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hi All,
How to use OR operator for two different values of a JCR property?
Please help me with the syntax.
I want to get the results with two different values for cq:template property.
Thanks,
Kishore
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
Refer the below queries for example
/jcr:root/content//*[@pageTitle='GeoMetrixx' or @jcr:title='Geometrixx Media']
In the above query i am searching with two properties pagetitle and jcr:title with OR operator.Even AND operator work as well.
/jcr:root/content//*[@cq:template='/libs/cq/core/content/projects/templates/creative-project-management' or @cq:template='/libs/cq/core/content/projects/templates/default'] which searches for cq:template property with 2 different values.
Refer the below doc for more information.
조회 수
답글
좋아요 수
Refer the below queries for example
/jcr:root/content//*[@pageTitle='GeoMetrixx' or @jcr:title='Geometrixx Media']
In the above query i am searching with two properties pagetitle and jcr:title with OR operator.Even AND operator work as well.
/jcr:root/content//*[@cq:template='/libs/cq/core/content/projects/templates/creative-project-management' or @cq:template='/libs/cq/core/content/projects/templates/default'] which searches for cq:template property with 2 different values.
Refer the below doc for more information.
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수