Skip to main content
Sep 11, 2024 9:21 AM UTC
Solved

How can I get the data of the properties?

I need to query the page properties under 1 path, the properties to query: template (cq:template), title(jcr:title), isActive(cq:lastReplicationAction)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Raja_Reddy
Raja_ReddyAccepted solution
Community Advisor
Sep 11, 2024 11:35 AM UTC

2 replies

Raja_Reddy
Community Advisor
Raja_ReddyCommunity AdvisorAccepted solution
Community Advisor
Sep 11, 2024 11:35 AM UTC

Hi @đathl ,
you can use bulk editor
http://localhost:4502/etc/importers/bulkeditor.html

 

Translate
EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Sep 11, 2024 1:08 PM UTC

Hi, 

Can you elaborate on what you need? You could simply do this by getting the Page's properties, something like this:

Page currentPage = pageManager.getContainedPage(resourceResolver.getResource("/content/mysite/en")); if (currentPage != null) { // Get properties String template = page.getProperties().get("cq:template", String.class); String title = page.getProperties().get("jcr:title", String.class); String isActive = page.getProperties().get("cq:lastReplicationAction", String.class); }

 

Hope this helps

 

Translate
Esteban Bustamante