Accordion Component Heading Elements values list in Dialog | Community
Skip to main content
rsl_lucky
Level 4
February 7, 2022
Solved

Accordion Component Heading Elements values list in Dialog

  • February 7, 2022
  • 1 reply
  • 1198 views

Hi All,

 

Accordion component dialog box, Heading elements attribute h2-h6 are shown in dropdown of-> Properties tab. The datasource of it is "core/wcm/components/commons/datasources/allowedheadingelements/v1" but couldn't find this path to add values in dropdown to customize it.

Could anyone let know how these values are rendered and what can be done to customize values .

 

 

Thanks in Advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijayalakshmi_S

@rsl_lucky 

It is a Servlet registered with that resourceTypecore/wcm/components/commons/datasources/allowedheadingelements/v1 and is internal to Core components

Given this, Customization in this case would be to override the dialog and write custom Datasource logic.

 

Source code of the servlet :https://github.com/adobe/aem-core-wcm-components/blob/474dce1aaea7dc508b747805fc429838bb058f31/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/servlets/AllowedHeadingElementsDataSourceServlet.java

 

 

 

1 reply

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
February 7, 2022

@rsl_lucky 

It is a Servlet registered with that resourceTypecore/wcm/components/commons/datasources/allowedheadingelements/v1 and is internal to Core components

Given this, Customization in this case would be to override the dialog and write custom Datasource logic.

 

Source code of the servlet :https://github.com/adobe/aem-core-wcm-components/blob/474dce1aaea7dc508b747805fc429838bb058f31/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/servlets/AllowedHeadingElementsDataSourceServlet.java

 

 

 

rsl_lucky
rsl_luckyAuthor
Level 4
February 8, 2022

Thanks, Vijayalakshmi_S

Let me try to customize & would revert back incase if anything.