Get root page properties on all child page | Community
Skip to main content
Amit-Tiwari
Level 4
March 21, 2018

Get root page properties on all child page

  • March 21, 2018
  • 1 reply
  • 3649 views

Hi All,

Can i get root page properties on all child pages but condition is root page and child pages are using the same template and i don't want author all child pages.

Here we can not use design_dialog as per the requirement.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 3
January 2, 2019

Hi Amit,

Have you got the solution for this? I'm also looking for this.Please let me know if you find a way.

Thanks,

Kiran

arunpatidar
Community Advisor
Community Advisor
January 2, 2019

You can do it with Java.

Create WCMUsePojo and find root page using below method and read root page properties and return as map.

// Initializes the navigation

  @Override

  public void activate() throws Exception {

  rootPage = getCurrentPage().getAbsoluteParent(1);

  ValueMap vm = rootPage.getProperties();

}

Page ("The Adobe AEM Quickstart and Web Application.")

Page ("The Adobe AEM Quickstart and Web Application.")

Arun Patidar