Sling Dynamic Include (SDI) in AEM 6.2 | Community
Skip to main content
Singaiah_Chintalapudi
Level 7
Sep 28, 2017 4:05 PM UTC
Solved

Sling Dynamic Include (SDI) in AEM 6.2

Hi,

I am trying to use the SDI in AEM 6.2 (no service packs). I've installed the Sling Dynamic Include bundle (3.0.0) on my publish instance and configure all the required parameters. However, its generating the <!-- SDI include (path: /content/geometrixx/en/services/_jcr_content/par/title.nocache.html, resourceType: geometrixx/components/title) --> but its not generating the the <!--#include virtual=""--> markup as shown in the in this demo.

Any fix for this?

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Singaiah_Chintalapudi
Singaiah_ChintalapudiAccepted solution
Level 7
Oct 3, 2017 2:42 PM UTC

Hi Rohit,

I was able to make it work. It was a apache config change. There was a small syntax change between Apache 2.2 and 2.4 causing this issue. This is fixed now.

Thanks for your willingness to help.

Thanks.

8 replies

Singaiah_Chintalapudi
Level 7
Dec 3, 2017 4:52 AM UTC

Hi,

I had to add a path to the directory shown below:

<Directory /var/www/html/geometrix-outdoors>

<IfModule disp_apache2.c>

        ModMimeUsePathInfo On

     SetHandler dispatcher-handler

</IfModule>

Options FollowSymLinks

AllowOverride None

</Directory>

Double check the Apache configuration. See my article here: http://aempodcast.com/2017/infrastucture/multi-domain-dispatcher-configuration/#.WiOCokqnHIU

Let me know if you still face issues. I can help.

Translate
rohitg22171791
Level 2
Dec 2, 2017 11:26 AM UTC

Hi noksc​

I am also facing the same issue on 2.4, Can you please post the resolution here?

Translate
Manjunath_DJ
Level 2
Oct 3, 2017 5:43 PM UTC

Hi Rohit,

Can you please post the details what was causing issue b/w version 2.2 and 2.4 and attached config zip. It can helps others

Translate
Singaiah_Chintalapudi
Singaiah_ChintalapudiAuthorAccepted solution
Level 7
Oct 3, 2017 2:42 PM UTC

Hi Rohit,

I was able to make it work. It was a apache config change. There was a small syntax change between Apache 2.2 and 2.4 causing this issue. This is fixed now.

Thanks for your willingness to help.

Thanks.

Translate
Singaiah_Chintalapudi
Level 7
Oct 1, 2017 3:19 PM UTC

Hi,

It suppose to get this on publish instance. But this is not working on publish. If it works on publish then it will work o  dispatcher as well.

Thanks.

Translate
rohitg22171791
Level 2
Sep 30, 2017 5:30 AM UTC

Hi,

Can you please attach zip of your apache and sdi config, I will have a look and resolve the issue.

Thanks.

Translate
Singaiah_Chintalapudi
Level 7
Sep 29, 2017 11:24 PM UTC

Hi,

I have already added all these as mentioned in the article.

Thanks.

Translate
rohitg22171791
Level 2
Sep 29, 2017 7:06 PM UTC

Hi,

Please add AddOutputFilter INCLUDES .html in your virtual host entry in httpd.conf file.

or you can modify your virtual host file as below and include the same in httpd.conf file.

<VirtualHost *:8080>

<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>

    Options FollowSymLinks Includes

    AllowOverride None

AddOutputFilter INCLUDES .html

</Directory>

    DocumentRoot "C:\\AEM\\htdocs"

    ServerName aem-publish.local

    ErrorLog "logs/vhost-error.log"

    CustomLog "logs/vhost-access.log" common

</VirtualHost>

where ServerName aem-publish.local is host name I have setup for my local in hosts file.

Regards

Rohit

Translate