Skip to main content
Level 4
October 16, 2015
解決済み

404 loading dialog on included sightly component

  • October 16, 2015
  • 1 の返信
  • 628 ビュー

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.

このトピックへの返信は締め切られました。
ベストアンサー 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 の返信

smacdonald2008
Level 10
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