Explain the process of delegating OOTB Title components in AEM and customizing them by adding new parameters and methods. | Community
Skip to main content
Level 3
July 30, 2024
Solved

Explain the process of delegating OOTB Title components in AEM and customizing them by adding new parameters and methods.

  • July 30, 2024
  • 1 reply
  • 560 views

Hi Everyone,

 

I have to create a Title Component by extending the OOTB Title Component, additionally i have to add 2 extra fields into that
1) linkTitleAttribute

2) linkAccessibilityLabel

I am not able to implement this use case by extending the core Title component. Kindly help

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

@monish_gavali 

To add the extra fields in model by using the existing core component, you can use the sling model delegation pattern and achieve this. Please follow the below steps

https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/customizing

https://github.com/adobe/aem-core-wcm-components/wiki/Delegation-Pattern-for-Sling-Models

 

1 reply

AMANATH_ULLAH
Community Advisor
AMANATH_ULLAHCommunity AdvisorAccepted solution
Community Advisor
July 31, 2024

@monish_gavali 

To add the extra fields in model by using the existing core component, you can use the sling model delegation pattern and achieve this. Please follow the below steps

https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/customizing

https://github.com/adobe/aem-core-wcm-components/wiki/Delegation-Pattern-for-Sling-Models

 

Amanath Ullah