AEM Code Snippets : How to get Page object based on path ?

Posted in AEM Code Snippets By Raj On January 24, 2018

 

In this code snippet, I am going to explain how to get page object by passing page path, in the activate method get the path and assign it to the local variable, you need to pass this local variable to the PageManager.getContainingPage method to get the page object

Complete code :

Use below html code to print page title

The output should display your page title