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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Get root page properties on all child page

Avatar

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.

1 Reply

Avatar

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

Avatar

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

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now