Expand my Community achievements bar.

SDI not working for sling:include component

Avatar

Level 2

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.

2 Replies

Avatar

Community Advisor

Hi @Sumit1191 ,

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

 

Regards,

Sanjay

Avatar

Level 2

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

 

Thanks for your response.