Looking for active pages that contains deactivated assets/node | Community
Skip to main content
New Participant
October 16, 2015
Solved

Looking for active pages that contains deactivated assets/node

  • October 16, 2015
  • 2 replies
  • 743 views

Hello All,

I am looking for a way to find all  the nodes/assets that are on a "cq page" , but  they are deactivated , is there a way to do that ?

 

Thank you in advance,

Aiman 

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 Sham_HC

When author try to deactivate the asset they will get a dialog the page that are referenced. So may be you do not have such page.  With single query I doubt it is possible but you can write a small script to get list of all deactivated asset & then go over that list to find if there is any reference.

2 replies

Dinu_Arya
New Participant
October 16, 2015

If any page or asset is published, "cq:lastReplicationAction" property will be added to its jcr:content node and the value will be "Activate". You search by using this property.

Sham_HC
Sham_HCAccepted solution
New Participant
October 16, 2015

When author try to deactivate the asset they will get a dialog the page that are referenced. So may be you do not have such page.  With single query I doubt it is possible but you can write a small script to get list of all deactivated asset & then go over that list to find if there is any reference.