Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Get root page properties on all child page

Amit-Tiwari
Level 4
Level 4

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.

2 Replies
kiranv40650953
Level 3
Level 3

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

Arun_Patidar
Community Advisor
Community Advisor

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