SDI not working for sling:include component | Community
Skip to main content
Level 2
October 6, 2021
Question

SDI not working for sling:include component

  • October 6, 2021
  • 1 reply
  • 1042 views

I have enabled SDI (SSI) for one of the component say xyz component.

 

Here is the observation,

  1. Wherever we have included the component at page component level using <sling:include path="" resourceType=""/>, SDI is not working.
  2. Component which are authored directly on the page for them getting SDI comment(i.e. mean its working),
    <!-- SDI include (path: <node path>.sdinocache.html, resourceType: <component resourcetype>) -->

Any suggestion to enable SDI for observation/scenario 1.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Sanjay_Bangar
Community Advisor
Community Advisor
October 6, 2021

Hi @sumit1191 ,

         Can you try to used data-sly-resource instead of sling:include and same resource type mentioned in SDI configuration.

 

Regards,

Sanjay

Sumit1191Author
Level 2
October 7, 2021

Hi @sanjay_bangar , We have this requirement specific to classic UI, so using jsp in code base.

 

Thanks for your response.