Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Custom tab in page properties.

Avatar

Level 1

How to create a custom tab in properties containing image, image title, image description from backend using java. 

Also, create a component that will display the values in properties tab.

1 Accepted Solution

Avatar

Correct answer by
Level 1

You can just override cq:dialog of your page component and add a new tab.

You can refer this document override section and apply same for you page component 
https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/sling-resource-mer...

 

Niket Goel

View solution in original post

3 Replies

Avatar

Community Advisor

You don't need to write in Java to add a new tab in page properties. You can just override cq:dialog of your page component and add a new tab.

You can refer this document override section and apply same for you page component 
https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/sling-resource-mer...

In your case it would be /apps/core/wcm/components/page/v3/page/cq:dialog

sachinarora_0-1658732620701.png

To display data in Tab, you can refer this resource. Its been used in Live Copy Tab to show the status. Path : /libs/wcm/msm/components/touch-ui/propertiesdialog/livecopy/status

 

Avatar

Correct answer by
Level 1

You can just override cq:dialog of your page component and add a new tab.

You can refer this document override section and apply same for you page component 
https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/sling-resource-mer...

 

Niket Goel

Avatar

Community Advisor

Hi @abhising23 ,

Please refer to this to create custom page Properties - https://medium.com/@mayursatav/extending-page-properties-in-aem-40891183df30 

And Use InheritanceValueMap in Sling Model to get page properties value for Component. - https://stackoverflow.com/questions/48079450/how-to-get-page-properties-using-sling-model-in-aem-6-3 

If you are using ACS AEM Commons you can use Hierarchical Page Property as well - https://adobe-consulting-services.github.io/acs-aem-commons/features/sling-model-injectors/hierarchi... 

Hope this could help you !!!

Regards

Shiv

 

Shiv Prakash