Open HitmanInWis opened 3 weeks ago
I was able to resolve this for my own project by creating a SlingPostProcessor
that detects when an Accordion/Tab/Carousel component is having a child added that is not a Container, and converting that component to a Container with a new node beneath it for the created resource.
i.e. Accordion
becomes Accordion
Not sure how they managed to get the Accordion authoring experience so wrong. The authors just want to see the accordion container where they can drop stuff into. All Accordions should be expanded in Edit mode so authors can easily preview the content.
Right now they have to
Once a Tab or Accordion Item or Carousel slide is created as something NOT a container, there’s no way to add more items to that Tab/Item/Slide and no way to convert it to a container. Also, there is no way to add a background color/image (container properties).
This, plus the fact that the default Accordion/Tabs extensions in the AEM project maven archetype include a cq:template with 2 items that are both Container when first added to a page, we really should consider having all children of these components be Container. It might also be a boon to FE devs that can now count on all Accordion/Tab/Carousel children to be Container.