How to browse nt:unstructured node in a path field

Avatar

Avatar
Validate 25
Level 3
Shehjadkhan
Level 3

Likes

10 likes

Total Posts

72 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Shehjadkhan
Level 3

Likes

10 likes

Total Posts

72 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Shehjadkhan
Level 3

01-11-2015

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,200 likes

Total Posts

6,394 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,200 likes

Total Posts

6,394 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

03-11-2015

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

Answers (3)

Answers (3)

Avatar

Avatar
Validate 25
Level 3
Shehjadkhan
Level 3

Likes

10 likes

Total Posts

72 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Shehjadkhan
Level 3

Likes

10 likes

Total Posts

72 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Shehjadkhan
Level 3

04-11-2015

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

Avatar
Boost 50
Level 10
Sham_HC
Level 10

Likes

161 likes

Total Posts

2,114 posts

Correct reply

1,204 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile

Avatar
Boost 50
Level 10
Sham_HC
Level 10

Likes

161 likes

Total Posts

2,114 posts

Correct reply

1,204 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile
Sham_HC
Level 10

02-11-2015

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

Avatar

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

277 likes

Total Posts

1,502 posts

Correct reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

277 likes

Total Posts

1,502 posts

Correct reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
edubey
Level 10

01-11-2015

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

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

Documentation