Skip to main content
Mohan_Kumar_Iya
Level 2
Feb 24, 2016 11:14 AM UTC
Solved

Couldn't create a Parsys component

I've tried using the below code to include "Parsys" component

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

but it throws an error stating

Error Message:

org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.resource.ResourceNotFoundException: No resource

Kindly help

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Feb 24, 2016 12:32 PM UTC

Yes, you will get exception.Why you have round brackets instead of curly braces

Use this

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

6 replies

smacdonald2008
Level 10
Feb 24, 2016 12:19 PM UTC

Ate you following online docs so community can reproduce your steps.

Translate
edubey
edubeyAccepted solution
Level 10
Feb 24, 2016 12:32 PM UTC

Yes, you will get exception.Why you have round brackets instead of curly braces

Use this

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

Translate
Mohan_Kumar_Iya
Level 2
Feb 25, 2016 6:44 AM UTC

Thank you, it is working fine,,but after i create a custom component for a page, i couldn't find the any parsys component as well as my custom component in the sidekick [ I've chosen the custom component created in "Design" mode too ]

Translate
edubey
Level 10
Feb 25, 2016 6:49 AM UTC

Share the XML for your component?

Make sure you have given a group and selected same group in design mode . Can you see component in design mode dialog?

If parsys component is not visible it component group could be hidden as usully there are not drag and drop rather placed at template level

Translate
Mohan_Kumar_Iya
Level 2
Feb 25, 2016 6:50 AM UTC

smacdonald2008 wrote...

Ate you following online docs so community can reproduce your steps.

yes i've been following AEM training documents from the cloud :)

Translate
Mohan_Kumar_Iya
Level 2
Feb 25, 2016 7:11 AM UTC

edubey wrote...

Share the XML for your component?

Make sure you have given a group and selected same group in design mode . Can you see component in design mode dialog?

If parsys component is not visible it component group could be hidden as usully there are not drag and drop rather placed at template level

 


Yes i could see the component i've created in the design mode, with the same name as i've provided for "Group Name" while creating the custom component.

I've just used a basic test case like this

<div data-sly-test.vartest="${properties.title}">
${vartest}
</div>
<div data-sly-test="${vartest}">
Please enter a value
</div>
<div data-sly-test="${vartest=='test'}">
Same value has been entered.
</div>

Translate