Posts

Showing posts from January 5, 2019

Composite Components in AEM using "cq:template"

Image
Use case There is a requirement to display an image, title and text on a page with authoring capabilities where an author can change the image, image size, title text, text content, text style. Considerations As an AEM developer           I want to be able to develop and maintain these components independently. As an AEM author           I want to drag and drop only one component , I do not want to drag and drop three different components           I want to be able to see default content authored when I drag and drop the component           I want to be able to modify the default authoring if required using respective component dialogs.           I want to be able to delete any of the sub-components i.e., image, title or text. Solution An AEM composite component using �cq:template� We can create a simple...