내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

How to access property under jcr:content of page from a component inside a parsys of the page

Avatar

Community Advisor

Hi,

I have a parsys component in my page inside this parsys i have dragged and dropped a custom component into the parsys. Now i had customized the page property dialog.Now when i add value to the page dialog this value gets stored under /content/page/jcr:content/customprop .Now i want to access this custom property value inside my custom dragged component jsp inside parsys.

Within Same component i know we can access properties like          <%=properties.get("sling:resourceType", "default title")%>

Whereas how do i access page property inside the component.

Please let me know.

Regards,

Raja

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

You can access any page property from component like below:

String title = pageProperties.get("jcr:title","Custom");

Thanks

Arun

Arun Patidar

AEM LinksLinkedIn

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

You can access any page property from component like below:

String title = pageProperties.get("jcr:title","Custom");

Thanks

Arun

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 10

Also notice you are using JSP - best practice in AEM is to replace JSP with HTL.