Customizing the childreneditor for custom components
Hi Everyone, can you provide me the steps to customize the childreneditor for custom components?
I followed the approach from accordion and carousel to do repeat in my component, but I am facing following issue -
org.apache.sling.api.resource.PersistenceException: Unable to commit changes to session.
Steps i followed -
- Made my component as cq:isContainer
- copied items tab from carousel to my custome component
- core/wcm/components/commons/editor/dialog/childreneditor/v1/childreneditor
- copied cq:editConfig from Accordion with listeners
- included panelcontainer.js from accordion
- include below code for adding components
<sly data-sly-resource="${resource.path @ resourceType='wcm/foundation/components/parsys/newpar', appendPath='/*', decorationTagName='div', cssClassName='new section aem-Grid-newComponent'}"
data-sly-test="${(wcmmode.edit || wcmmode.preview)}"></sly>
FYI - I don't want to use the Accordion, Carousel or tab as my sling:resourceSuperType

