Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Sling Dynamic Inlude not Rendering Component

Avatar

Level 2

Hi all,

 

I have configured the SDI as per adobe's documentation, but the dynamic component is not rendering. I can see at the cache that the include is there and have made a request to this component thru the dispatcher and it's working.... I believe that the additional request to the component is not being call. Or maybe I'm missing a configuration?

 

This is my host directory config as per I'm not using virtual hosts

<Directory />
<IfModule disp_apache2.c>
# ModMimeUsePathInfo On
# enable dispatcher for ALL request. if this is too restrictive,
# move it to another location
SetHandler dispatcher-handler
</IfModule>
SetOutputFilter INCLUDES
Options Indexes FollowSymLinks Includes
ModMimeUsePathInfo On
AddOutputFilter INCLUDES .html
Options +includes
# Options FollowSymLinks
AllowOverride None
AddOutputFilterByType INCLUDES text/html
</Directory>

 

And have created nocache rule and configured the SDI at config manager console.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @espinari,

If call to the component is not happening, you can cross check on the below.

  • Check the path as part of the Comments as evident in the view source of page which has dynamic component. (Screenshot 1)
  • Make sure it is full content path or if it is shortened path, see to that the actual component content resource is resolved correctly. 

Related OSGi config properties:

  • Path rewriting is controlled by the property (highlighted in green) of SDI OSGi config
  • Enabling comments is controlled by the property (highlighted in red) of SDI OSGi config.

Screenshot 1:

Vijayalakshmi_S_0-1624563203487.png

Enabled comments + Path rewriting is unchecked so it is full content path.

Vijayalakshmi_S_1-1624563303131.png

 

If you still face issues, please do share the SDI OSGi config and path to the dynamic component to narrow down further. 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @espinari,

If call to the component is not happening, you can cross check on the below.

  • Check the path as part of the Comments as evident in the view source of page which has dynamic component. (Screenshot 1)
  • Make sure it is full content path or if it is shortened path, see to that the actual component content resource is resolved correctly. 

Related OSGi config properties:

  • Path rewriting is controlled by the property (highlighted in green) of SDI OSGi config
  • Enabling comments is controlled by the property (highlighted in red) of SDI OSGi config.

Screenshot 1:

Vijayalakshmi_S_0-1624563203487.png

Enabled comments + Path rewriting is unchecked so it is full content path.

Vijayalakshmi_S_1-1624563303131.png

 

If you still face issues, please do share the SDI OSGi config and path to the dynamic component to narrow down further. 

Avatar

Community Advisor

Hi @espinari 

  1.   Are you using CDN also? if yes then you need to use ESI include.
  2. Can you share also share screenshot for your include tag?
  3. Also Sling dynamic include OSGI service screen shot

 

Thanks

Dipti