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

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

akatsuki07
Level 2
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
KiranVedantam1992
Correct answer by
Community Advisor
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
KiranVedantam1992
Correct answer by
Community Advisor
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

akatsuki07
Level 2
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"