Skip to main content
September 11, 2024
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
September 11, 2024

2 replies

Raja_Reddy
Community Advisor
Raja_ReddyCommunity AdvisorAccepted solution
Community Advisor
September 11, 2024

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
September 11, 2024

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