Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Custom component with parsys showing child components in "Paragraph System - HTL" in content tree

Avatar

Level 2

I've created a custom component that has a parsys system allowing you to add child components. While this works properly the added child components are showing up under "Paragraph System - HTL" in the content tree. My use case here is to allow a better user experience for content authors so they can see the components in the flow of the page.

How custom component shows child component:

Screen Shot 2021-05-05 at 12.44.47 PM.png

Instead how can I get it fall nicely like how the default "container/layout container" component treats child components:
Screen Shot 2021-05-05 at 12.44.59 PM.png

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @akatsuki07,

 

Can you please check, how did you add your parsys, for me, it is working fine. Please find the code and the screenshot

 

Sightly code:

<div data-sly-resource="${'lparsys' @ resourceType='foundation/components/parsys'}"></div>

 

KiranVedantam1992_0-1620286088749.png

Here the tab component has 2 parsys inside it to add additional components

 

Hope this helps!

 

Thanks,

Kiran Vedantam

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @akatsuki07,

 

Can you please check, how did you add your parsys, for me, it is working fine. Please find the code and the screenshot

 

Sightly code:

<div data-sly-resource="${'lparsys' @ resourceType='foundation/components/parsys'}"></div>

 

KiranVedantam1992_0-1620286088749.png

Here the tab component has 2 parsys inside it to add additional components

 

Hope this helps!

 

Thanks,

Kiran Vedantam

Avatar

Level 2
Hi adding the parsys is no issue. It's how it is displayed in the content tree. I would like it to display how it is showing with layout container rather than "paragraph system". I want it to show "Component Name"