Issue with SSI include of embedded component
Hi All,
I have a component embedded directly into the page something like below:
<div data-sly-resource="${@path = 'somecomponent',resourceType='someproject/component/somecomponent'}"></div>
Now when I add this resourceType to SSI include config, this throws a not found error on dispatcher. This is because dispatcher is trying to access as below:
<!--#include virtual="/content/somesite/en/_jcr_content/somecomponent.nocache.html" --> (This doesn't exist in publish)
- As we are embedding this component and until the component is not authored component node will not be created.(This component doesn't require authoring)
- I wrote some code to dynamically generate the node if its not present. For this again I need to reload all the pages which has this component to create the node.
- When a url is hit on dispatcher, it will indirectly call the publish page and that should generate the node on publish but that's not happening for some reason.
- I also tried adding the component directly to template jcr:content node but this needs recreation of pages to have the node by default.
Please let me know some solution where in I don't need to manually author all pages or reload all pages.