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
Solved! Go to Solution.
Views
Replies
Total Likes
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>
Views
Replies
Total Likes
Ate you following online docs so community can reproduce your steps.
Views
Replies
Total Likes
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>
Views
Replies
Total Likes
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 ]
Views
Replies
Total Likes
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
Views
Replies
Total Likes
smacdonald2008 wrote...
Ate you following online docs so community can reproduce your steps.
yes i've been following AEM training documents from the cloud :)
Views
Replies
Total Likes
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>
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies
Views
Likes
Replies
Views
Likes
Replies