Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
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
Level 8

@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
Level 8

@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