해결됨
Is there any way to access page properties if only page path is given?
I want to access the properties of specific page but I only have its path with me in the sling model.
how can I access the page properties if only the path is given?
I have tried using :
@ScriptVariable
private ResourceResolver resourceResolver;
Page rootPage = resourceResolver.getResource(PAGE_PATH).adaptTo(Page.class);
but I am getting a null pointer exception in this.
Please help me find out how to do it.
Thank you