Hi everyone,
I am following this page(Delegation Pattern for Sling Models · adobe/aem-core-wcm-components Wiki · GitHub)and try to customize title component,but it still returns the originial title.
Is there something else i need to do besides create pageHeadline component in ui.apps and model file in models folder?For example add something into the core/pom.xml or create a new title htl file in crxde lite?
Thanks in advance!
My code below:
training\ui.apps\src\main\content\jcr_root\apps\training\components\pageHeadline\.content.xml
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @zonghuiliu
Please try to override all the remaining default getter function used in the title core class in your custom class.
@override public String getType() { return title.getType(); } default String getLinkURL() { return title.getLinkURL(); } default Boolean isLinkDisabled() { return title.isLinkDisabled(); } default String getExportedType() { return title.getExportedType(); }
Hope this helps!
Hi,
I have extended the Teaser core component, below are the code changes
Hi @zonghuiliu
Please try to override all the remaining default getter function used in the title core class in your custom class.
@override public String getType() { return title.getType(); } default String getLinkURL() { return title.getLinkURL(); } default Boolean isLinkDisabled() { return title.isLinkDisabled(); } default String getExportedType() { return title.getExportedType(); }
Hope this helps!
Views
Likes
Replies
Views
Like
Replies