How to make parsys containers available in content fragment component embedded using data-sly-resource | Community
Skip to main content
mpalme1
Level 3
Jun 25, 2020 9:49 PM UTC
Solved

How to make parsys containers available in content fragment component embedded using data-sly-resource

I have a component with htl that wraps a couple of components including a content fragment component like this:

 

<sly data-sly-resource="${'./contentfragment' @ resourceType='mysite/components/content/contentfragment'}"/>

 

 

And that works except that, in the page editor, the "in between" parsys containers of that resourced content fragment component are visible but components can't be added from the component drawer. If I drag them onto the page over the parsys, they don't drop.

 

 

 

 

Is there a way to make it so they can be?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Jun 27, 2020 12:58 PM UTC

Are you using core components? In that case I would ask on the Core Components github page.

12 replies

mpalme1
mpalme1Author
Level 3
Jun 29, 2020 12:24 PM UTC
@kautuk_sahni, i still have not found a solution
Translate
kautuk_sahni
Employee
Jun 29, 2020 10:57 AM UTC
@mpalme1 Any update on this thread?
Translate
Kautuk Sahni
arunpatidar
New Participant
Jun 27, 2020 6:32 PM UTC

I don't think so you can author content fragment's content in the page editor. You can configure and browse content fragment which is created using content fragment model. Are you not able to configure content fragment when you include from HTL or the page parsys is become inedible because of CF?

 

Translate
Arun Patidar
mpalme1
mpalme1Author
Level 3
Jun 29, 2020 12:31 PM UTC
Well, I am authoring the content fragment in my assets library using the content fragment model as you said. In this case, I am trying to use the Content Fragment Component (this one: https://docs.adobe.com/content/help/en/experience-manager-core-components/using/components/content-fragment-component.html) to render the content of the Content Fragment. That component will include those "in between" parsys drop zones as described here: https://docs.adobe.com/content/help/en/experience-manager-64/developing/components/components-content-fragments.html#in-between-content. What I am trying to do works if the content fragment component is added to the page manually or via a workflow. However, if I add it using the data-sly-resource syntax above, the included "in-between" drop zones are visible but disabled.
Translate
joerghoh
joerghohAccepted solution
Employee
Jun 27, 2020 12:58 PM UTC

Are you using core components? In that case I would ask on the Core Components github page.

Translate