Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to browse nt:unstructured node in a path field

Shehjadkhan
Level 4
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
kautuk_sahni
Correct answer by
Community Manager
Community Manager

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

View solution in original post

0 Replies
edubey
Level 10
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

Sham_HC
Level 10
Level 10

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

kautuk_sahni
Correct answer by
Community Manager
Community Manager

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

View solution in original post

Shehjadkhan
Level 4
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
HeenaMadan
Level 1
Level 1
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