Extending Page Properties in AEM | Community
Skip to main content
MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 29, 2022

Extending Page Properties in AEM

  • November 29, 2022
  • 6 replies
  • 2475 views

Extending Page Properties

  by Mayur Satav

Overview

It is always one of the prime requirements for the projects to extend page properties. It helps to manage metadata and many other functionalities associated with the page.In this blog we will see how to extend page properties.

 

 

 

 

 

 

 
<newtab cq:showOnCreate="{Boolean}true" jcr:primaryType="nt:unstructured" jcr:title="New Tab" sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns"> <items jcr:primaryType="nt:unstructured"> <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/container"> <items jcr:primaryType="nt:unstructured"> <section jcr:primaryType="nt:unstructured" jcr:title="New Custom tab" sling:resourceType="granite/ui/components/coral/foundation/form/fieldset"> <items jcr:primaryType="nt:unstructured"> <textfield jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/textfield" name="./testfield"/> </items> </section> </items> </column> </items> </newtab>
 

 

 

Q&A

Please use this thread to ask questions relating to this article

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

kautuk_sahni
Community Manager
Community Manager
November 30, 2022

@mayursatav Thank you for sharing this with the community. I have seen this use case had been asked many times in the past. I hope your article helps those who are looking to extend page properties. 

Kautuk Sahni
MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 30, 2022

Thanks @kautuk_sahni ,

gdWebct
Adobe Champion
Adobe Champion
December 6, 2022

Agree with @kautuk_sahni, this comes up as a question a number of times. Thank you @mayursatav.

Level 2
March 9, 2023

Thanks for the article @mayursatav 
I'm currently trying to figure out how to access a custom page property from a custom component in the html file with data-sly-test. It would be great if you could share a your ideas how this can be done. Thanks!

Level 2
March 9, 2023

@mayursatav I figured it out myself. It works for my like this: ${currentPage.Properties.fieldName} It was previously not working because of an issue with the checkbox in the properties.

Level 3
January 29, 2025

@monikafl I believe you can also use ${properties.fieldName}