Is there way to know nodes without jcr:content node? | Community
Skip to main content
GK-007
Level 9
December 9, 2016
Solved

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

  • December 9, 2016
  • 16 replies
  • 8615 views

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.
Best answer by kautuk_sahni

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

16 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

smacdonald2008
Level 10
December 9, 2016

Please provide more details. 

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

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? 

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.

Level 2
December 10, 2016

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

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

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
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
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

Level 2
June 7, 2018

Please help me on this.