Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

List all locked pages

amine74235389
Level 2
Level 2

Hi,

Is there a way to list all the pages locked in AEM? One of the common issues we have is people forgetting to unlock their pages. The idea is if they have a page where they can monitor all the locked pages, whether by the user or everyone, they'll be able to unlock them sooner.

Thanks

Amin

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

When a page is locked - it has this prop:

Lock.png

What you can do is write a QueryBuilder query to fetch all pages in the AEM JCR that are locked - similiar to this: Get list of Activated or Deactivated Pages in CQ

View solution in original post

4 Replies
smacdonald2008
Correct answer by
Level 10
Level 10

When a page is locked - it has this prop:

Lock.png

What you can do is write a QueryBuilder query to fetch all pages in the AEM JCR that are locked - similiar to this: Get list of Activated or Deactivated Pages in CQ

View solution in original post

amine74235389
Level 2
Level 2

Thanks for the reply Donald. So I followed your suggestion and used query builder and was able to see all the locked pages in the site. I wrote it like this:

path=/content/website

property=jcr:content/jcr:lockIsDeep

property.value=true

The right side returns a list of all locked pages. I'm trying to figure out how to get it to display the author who locked the page. I can tell that the property is held in "jcr:lockOwner". Is there a way to display that as part of the query?

amine74235389
Level 2
Level 2

Ok if I understand, this means I have to write code to get this working. It can't be done using the query builder available in CRX. In that case, I am going to have to find a tutorial somewhere for this, my knowledge is very limited.

Thanks again Donald.