AEM Guru,
We want to customize the Image V2 core component which is having DM functionality. like adding few CTA functionality along with the existing core functionality like DM and Lazy loading.
When i tried to add the cq:dialog my screen is looking like this :
null tab is from image component and other ones are from my customization.
Any help will be appreciated.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @aem_dev2,
For override/extend the dialog when your component is inheriting from core Image V2
Screenshot for clarity:
Only asset node is overridden, metadata tab is coming from Core Image V2 dialog
Hi @aem_dev2,
For override/extend the dialog when your component is inheriting from core Image V2
Screenshot for clarity:
Only asset node is overridden, metadata tab is coming from Core Image V2 dialog
Small correction in my response. If we don't want the parent tabs to be part of the dialog, solution mentioned by @Anudeep_Garnepudi should be the way.
I overlooked to mention sling resource merger properties. You can leverage other properties like sling:orderBefore, sling:hideProperties and sling:hideResource based on the need.
Views
Replies
Total Likes
Views
Replies
Total Likes
If we create new image component inheriting from core image component, we should inherit features as available from core image component. You can then add new functionality on top of it or override existing functionality from core component based on the need.
Views
Replies
Total Likes
Make sure your tabs are under cq:dialog/content/items/tabs/items path. If you don't want the parent component tabs use sling resource merger property sling:hideChildren String[] asset,metadata to items node under tabs.
Views
Likes
Replies