Expand my Community achievements bar.

SOLVED

Issue with Parsys in a Sightly component

Avatar

Level 4

Hi,

In AEM5.6, I was able to create a component which has a child parsys like this:

<%@include file="/libs/foundation/global.jsp"%>
    <div class="group">
        <cq:include path="question_list" resourceType="foundation/components/parsys" />    
    </div>

I've tried to do the same in Sightly like this:

<div>

<section class="question_list"

data-sly-resource="${'question_list' @ resourceType='wcm/foundation/components/parsys'}">

</section>

</div>

This lets me drag my component onto the page.  However, in Sightly, when I drag a component into my question_list component, it actually gets added to the parent parsys, not to the question_list

Am I doing something wrong, or is this an issue with Sightly and/or the new Touch UI Parsys (I tried the foundation parsys also with the same result), but the parent is a Touch UI Parsys.

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hey Tim,

Can you double check your CRXDE Lite content area?  I just tried the same situation in the touch UI and I agree it doesn't look like it is part of the "sub" paragraph, but when I look in CRXDE it does in fact show the component I added to the "sub" paragraph as being part of that paragraph, not the parent paragraph.

Thanks,

Brad

View solution in original post

5 Replies

Avatar

Level 3

Hi,

 

Try using this:

<div data-sly-resource ="${@path='question_list', resourceType='wcm/foundation/components/parsys'}"></div>

 

Thanks,

Nikunj

Avatar

Correct answer by
Level 3

Hey Tim,

Can you double check your CRXDE Lite content area?  I just tried the same situation in the touch UI and I agree it doesn't look like it is part of the "sub" paragraph, but when I look in CRXDE it does in fact show the component I added to the "sub" paragraph as being part of that paragraph, not the parent paragraph.

Thanks,

Brad

Avatar

Level 2

Hi Nikunj

I tried the same thing which you've highlighted but still seeing the same issue.

<div data-sly-resource="${ @path='thirdrow-parsys',resourceType='wcm/foundation/components/parsys'}" data-sly-unwrap></div>

If i add another component to same parsys it does not open dialog for previous one, instead it opens up dialog of last added component in that parsys.

Let me know if you know about the solution.

Avatar

Level 4

The behaviour you've described was confirmed by Adobe as a Bug.  If you contact Daycare you can get a hotfix.

Regards,

Tim

Avatar

Level 2

<html>
    <div data-sly-include="head.html"></div>
    <div data-sly-include="/libs/wcm/core/components/init/init.jsp"></div>
    <body>
        <h1>This is our rendering script</h1>
        <div data-sly-resource="${@path='par',resourceType='wcm/foundation/components/parsys'}"></div>
    </body>
</html>

kind regards,

Kaushik