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

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

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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/custo...

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

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@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/custo...

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