Extending Page Properties in AEM | Community
Skip to main content
MayurSatav
New Participant
November 29, 2022

Extending Page Properties in AEM

  • November 29, 2022
  • 6 replies
  • 2474 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

6 replies

New Participant
January 29, 2025

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

New Participant
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.

New Participant
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!

gdWebct
New Participant
December 6, 2022

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

MayurSatav
New Participant
November 30, 2022

Thanks @kautuk_sahni ,

kautuk_sahni
Employee
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