How can I get the data of the properties? | Community
Skip to main content
September 11, 2024
Solved

How can I get the data of the properties?

  • September 11, 2024
  • 2 replies
  • 552 views

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.
Best answer by Raja_Reddy

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

 

2 replies

Raja_Reddy
Community Advisor
Raja_ReddyCommunity AdvisorAccepted solution
Community Advisor
September 11, 2024
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

 

Esteban Bustamante