Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Hi,
I tried to fetch informations from the repository using the QueryBuilder.
I could reproduce my problem with the servlet.
When I enter this URL :
http://localhost:4502/bin/querybuilder.json?path=/content/geometrixx/en/products/triangle&type=cq:Pa...
It returns 2 results : Features and Overview.
But I would like the query to also return Triangle which is a cq:Page.
Can you help me plz ?
Thanks.
Gelöst! Gehe zu Lösung.
Zugriffe
Antworten
Likes gesamt
Hi
When you use path=/content/geometrixx/en/products/triangle, it searches pages under the triangle node. If you want the query to return Triangle, you have to use a different path: http://localhost:4502/bin/querybuilder.json?path=/content/geometrixx/en/products&type=cq:Page.
But of course the query will then return more results.
Zugriffe
Antworten
Likes gesamt
I think the correct way to solve this problem would be adding one more parameter:
path.self=true
So your query would be:
Zugriffe
Antworten
Likes gesamt
Hi
When you use path=/content/geometrixx/en/products/triangle, it searches pages under the triangle node. If you want the query to return Triangle, you have to use a different path: http://localhost:4502/bin/querybuilder.json?path=/content/geometrixx/en/products&type=cq:Page.
But of course the query will then return more results.
Zugriffe
Antworten
Likes gesamt
Ok, so you confirm what I though, that's not possible.
Then I'll search for the element below cq:Page, which is cq:PageContent.
http://localhost:4502/bin/querybuilder.json?path=/content/geometrixx/en/products/triangle&type=cq:Pa...
Thank you.
Zugriffe
Antworten
Likes gesamt
Yes that's the way to go if you really want to do that.
cq:PageContent properties are in jcr:content nodes and there is one below each cq:Page.
Zugriffe
Antworten
Likes gesamt
I finally got it working by adding another Predicate : path.self=true.
http://localhost:4502/bin/querybuilder.json?path=/content/ethias-sd1/fr/cdc-home/vehicules&type=cq:P...
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten