AEM4BEGINNER blog is for Beginners who are interested in learning Adobe Experience Manager (AEM) aka Adobe CQ5 from basics. The Information provided in this blog is for learning and testing purposes only. Here, I have posted the information which I know or gathered from different sources.
You can customize Adobe Experience Manager's core components by extending them and modifying the Java logic. In this article, you are going to customize the Java object used by the Title component to add some static text to the end of the title. The way the Core Components are written, they reference back end Java objects, implemented using the Sling Models framework, by interface name. For example, the Title component’s HTML references an interface named com.adobe.cq.wcm.core.components.models.Title.
When the HTL script asks for implementation of this interface, Sling Models uses the implementation class which is associated with the nearest resource type. So, to provide a custom backing Java object, you need to create a Sling Model class which uses a closer resource type than the default.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.