404 loading dialog on included sightly component | Community
Skip to main content
New Participant
October 16, 2015
Solved

404 loading dialog on included sightly component

  • October 16, 2015
  • 1 reply
  • 624 views

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.

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 smacdonald2008

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

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

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