Highlighted

Get root page properties on all child page

amitkrt

21-03-2018

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.

Replies

Highlighted

kiranv40650953

02-01-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

Highlighted

Arun_Patidar

MVP

02-01-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.")