Issue with Parsys in a Sightly component | Community
Skip to main content
Level 4
October 16, 2015
Solved

Issue with Parsys in a Sightly component

  • October 16, 2015
  • 5 replies
  • 9329 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by b7wilso

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

5 replies

Level 3
October 16, 2015

Hi,

 

Try using this:

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

 

Thanks,

Nikunj

b7wilso
b7wilsoAccepted solution
Level 3
October 16, 2015

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

Level 2
October 16, 2015

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.

Level 4
October 16, 2015

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

Regards,

Tim

Level 2
January 15, 2017

<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