Hi,
To check if page are part of live copy or not, you must check if there is a mixin type cq:LiveRelationship in present or not and then write a sql query on that
The information is stored the following way .
- cq:LiveRelationship mixin type
Any livecopy page has such a mixin type on its jcr:content node.
If not, the page has been at some point detached, or manually created via the authoring interface outside of a Livecopy action (create or rollout)
- cq:LiveSyncCancelled mixin type
Added on jcr:content nodes of Livecopy pages that were suspended.
If the suspension if effective for child pages as well : a cq:isCancelledForChildren=true property is added on the same node.
Arun Patidar

