Expand my Community achievements bar.

SOLVED

404 loading dialog on included sightly component

Avatar

Level 5

In a page template I'm loading in a component to show content related to the page the user is on. 

I'm loading in the resource in sightly like:

<div data-sly-resource="${'related' @ resourceType='/apps/newsadmin/components/newsList'}"></div>

The issue im running into is when I want to edit some settings on this component, the dialog fails to load, and a 400 (bad request) message appears in the console. I believe this is because /jcr:content/related does not exist on my repository, so it is unable to load settings in cq:dialog.html

I'm not sure how to proceed, as I haven't run into this yet. I suppose I can programmatically create the "related" node, but if there's some other solution I'd like to go with that.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Make sure that any nodes a dialog references (ie - /jcr:content/related ) is present in the JCR. For those reading this thread and wanting to know how to create a Sighly component with a dialog - see: 

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Make sure that any nodes a dialog references (ie - /jcr:content/related ) is present in the JCR. For those reading this thread and wanting to know how to create a Sighly component with a dialog - see: 

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html