Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Customizing aem core carousel component – Panel selection is not visible in authoring dialog

karanmahi
Level 4
Level 4

We are customizing aem core carousel component, we have created a proxy component from where we doing resource supertype to core carousel v1 component. We want to override the markup of this component. But the issue is, when we override the markup, the “panel” selection option is not visible in the authoring dialog. I mean the panel icon after the first icon in the authoring dialog. Look at the screenshot. It looks like markup is tightly coupled with when panel selection visibility. Is there any way that we can override html and retain the panel selection option? What would be the bare minimum we need from the core carousel component to achieve this. Any pointers will be highly appreciated.

 

Core carousel - notice 2nd-panel icon (after ranch option)

 

image.png

 

2nd-panel icon not visible here

image.png 

1 Accepted Solution
Shashi_Mulugu
Correct answer by
Community Advisor
Community Advisor

@karanmahi If you want to write your own HTML, those things will not work so easily.. As of i know, those features are tightly coupled with html classes and data-* attributes.

Below are few clientlibs, you need have to make Childreneditor and PAnel select work along with HTML(classes and data-*).

childreneditor - /apps/core/wcm/components/commons/editor/dialog/childreneditor/v1/childreneditor
editor - /apps/core/wcm/components/carousel/v1/carousel/clientlibs/editor
editorhook - /apps/core/wcm/components/carousel/v1/carousel/clientlibs/editorhook
panelcontainer - /apps/core/wcm/components/commons/editor/clientlibs/panelcontainer
panelselect - /apps/core/wcm/components/commons/editor/clientlibs/panelselect

View solution in original post

3 Replies
Shashi_Mulugu
Correct answer by
Community Advisor
Community Advisor

@karanmahi If you want to write your own HTML, those things will not work so easily.. As of i know, those features are tightly coupled with html classes and data-* attributes.

Below are few clientlibs, you need have to make Childreneditor and PAnel select work along with HTML(classes and data-*).

childreneditor - /apps/core/wcm/components/commons/editor/dialog/childreneditor/v1/childreneditor
editor - /apps/core/wcm/components/carousel/v1/carousel/clientlibs/editor
editorhook - /apps/core/wcm/components/carousel/v1/carousel/clientlibs/editorhook
panelcontainer - /apps/core/wcm/components/commons/editor/clientlibs/panelcontainer
panelselect - /apps/core/wcm/components/commons/editor/clientlibs/panelselect

View solution in original post

karanmahi
Level 4
Level 4
@Shashi_Mulugu yea, i looked at these client libraries. Do you mean overriding these client libraries. If yes, on top of you head, do you know, which all bare minimum client libraries we need to override ?
Shashi_Mulugu
Community Advisor
Community Advisor

I customized tabs component, with cmp-tabs class and data-cmp-is attributes so ended up customizing, children editor, panel selector.js, with all new html, all js files..

 

Also you need to develop one servlet for add/delete/move in childreneditor