Skip to main content
GK-007
Level 9
December 9, 2016
Solved

Is there way to know nodes without jcr:content node?

Hi All,

Is there any way/tool to know the JCR nodes without jcr:content?

Please help me!!!

Thanks,

Kishore

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Adobe Employee
December 12, 2016

Hi 

Please have a look at these posts:- 

Link:-http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__aswh-hello_can_someon.html

// How to find nodes without specific child node? How can I find nodes without specific child node (e.g. jcr:content)?

 

Link:- http://stackoverflow.com/questions/25019693/cq-5-query-builder-to-get-list-of-pages-without-jcrcontent-node

// to get list of pages without jcr:content node

 

I hope this would help you.

~kautuk

Kautuk Sahni

17 replies

Adobe Employee
December 9, 2016

Not sure I understand the question, what are you trying to achieve, why do you want to do this?

Regards,

Opkar

Translate
smacdonald2008
Level 10
December 9, 2016

Please provide more details. 

Translate
GK-007
GK-007Author
Level 9
December 9, 2016

Recently we have upgraded application from AEM 6.0  to AEM 6.2.

We see some of the nodes without jcr:content node.

Would like to know if there is any way to know the nodes without any jcr:content.

Thanks,

Kishore

Translate
smacdonald2008
Level 10
December 9, 2016

Is this specific to under a path like /content/<yoursite>? 

Or are you looking at this across the entire JCR structure? 

Translate
GK-007
GK-007Author
Level 9
December 9, 2016

smacdonald2008 wrote...

Is this specific to under a path like /content/<yoursite>? 

Or are you looking at this across the entire JCR structure? 

 

Looking for entire JCR structure.

Translate
Level 2
December 10, 2016

Are you seeing jcr:content nodes missing for your pages and assets ?

Translate
GK-007
GK-007Author
Level 9
December 10, 2016

I have seen it.

Wants to know if there are still any such nodes without jcr:content node in our application.

Looking for a way to know these kind of nodes.

-Kishore

Translate
kautuk_sahni
Adobe Employee
kautuk_sahniAdobe EmployeeAccepted solution
Adobe Employee
December 12, 2016

Hi 

Please have a look at these posts:- 

Link:-http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__aswh-hello_can_someon.html

// How to find nodes without specific child node? How can I find nodes without specific child node (e.g. jcr:content)?

 

Link:- http://stackoverflow.com/questions/25019693/cq-5-query-builder-to-get-list-of-pages-without-jcrcontent-node

// to get list of pages without jcr:content node

 

I hope this would help you.

~kautuk

Translate
Kautuk Sahni
Level 2
June 7, 2018

Hi Kautukashni,

I had tried with the below mentioned link but it is not working.

Link:- http://stackoverflow.com/questions/25019693/cq-5-query-builder-to-get-list-of-pages-withou t-jcrcontent-node

// to get list of pages without jcr:content node

And my requirment was to remove the jcr:content from the Dam Assets, Please find my Query below.

Jcr Query :

path=/content/dam

type=dam:Assest

child.name=jcr:content
child.operator=not_exists
p.limit=-1

Translate
Level 2
June 7, 2018

Please help me on this.

Translate