Tuesday, 17 July 2018

Extending Adobe Experience Manager Core Components

You can customize Adobe Experience Manager 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 an 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.

The following illustration shows the Title component that uses a custom Java class that extends the Title core component class.

NOTE - To see this content in a Guided Journey - see part 5 here: http://scottsdigitalcommunity.blogspot.com/2018/06/guided-journey-for-using-adobe.html

Join the Experience League

To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.

Join the Adobe Experience League by clicking this banner.

I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.

Linked In: http://www.linkedin.com/in/scottmacdonald2010

YouTube: Subscribe to the AEM Community Channel. 

Featured post

Adobe Experience Manager FAQs and other Tips

This post captures FAQs, and other tips for AEM that AEM Developers will find useful. We will update this list on an on-going basis. I a...