Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How to browse nt:unstructured node in a path field

Avatar

Level 4

Hi All,

I want to give author ability to author to choose a nt:unstructured node in my path field, is there any property on this xtype which i can add to make this happen.

Thanks!

Shehjad

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi Shehjadkhan

As mentioned by sham, path field dose not check for node type. 

You can use JCR API, Query builder API or Query builder API to do so.

Link:- https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

Link:- https://docs.adobe.com/docs/en/cq/5-6-1/dam/customizing_and_extendingcq5dam/query_builder.html

Link:- https://helpx.adobe.com/experience-manager/using/jqom.html

 

I hope this would act as some of the help.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

5 Replies

Avatar

Level 10

can you give more details on where is that nt:unstructured node exist ?

You can use predicate with value nosystem , give rootPath as /

Documentation

Avatar

Level 10

Path field does not check for node type. Make sure user trying to verify have access to the node.

Avatar

Correct answer by
Administrator

Hi Shehjadkhan

As mentioned by sham, path field dose not check for node type. 

You can use JCR API, Query builder API or Query builder API to do so.

Link:- https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

Link:- https://docs.adobe.com/docs/en/cq/5-6-1/dam/customizing_and_extendingcq5dam/query_builder.html

Link:- https://helpx.adobe.com/experience-manager/using/jqom.html

 

I hope this would act as some of the help.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 4

Hi All,

I was able to solve this problem by adding below property on pathfield xtype, which allowed me to browse nt:unstructured node

      
predicate
String
nosystem

Avatar

Community Advisor
Hi Shehjadkhan, I have same requirement to show data of nt:unstructured node. I added predicate="nosystem" but still it is not rendering nt:unstructured nodes. Could you please help me. thanks