/etc/desings is not getting called in AEM 6.3

Avatar

Avatar

velparic1097644

Avatar

velparic1097644

velparic1097644

20-08-2018

Hi,

        Currently we had migrated our content from AEM 6.2 to AEM 6.3 and after migration we had started unit testing the components in AEM 6.3 Instance

at that time some of the components of throwing error in the broswer.

Java Script which comes under /etc/designs where not getting called.

Actual Code : 

<div data-sly-use.itemUrl="${'/etc/designs/hmi/clientlibs/authoring/completeUrl.js' @ url=properties.linkURL}">

        <a class="js-global-default-anchor" href="${itemUrl}" data-sly-unwrap="${!itemUrl}">

            <div data-sly-use.image="image.js" data-sly-unwrap="false">

                    <img src="${image.src}" class="${image.cssClass} col_img"

                        data-emptytext="Info Page Wide Box"

                        usemap="${image.imageMaps.hash}" />

                </div>

                <div class='caption'>

                    <h4 class="thumbnailHeading">${properties.title}</h4>

                    <p class="thumbnailText">${properties.description}</p>

                </div>

        </a>

    </div>

</sly>

</div>

Here in this Code the completeUrl.js is not getting called which was the root cause for  the browser issue.But In-case if we had moved the Js under /apps at that time the code was working properly

Working Code :

<div data-sly-use.itemUrl="${'/apps/hmi/clientlibs/authoring/completeUrl.js' @ url=properties.linkURL}">

        <a class="js-global-default-anchor" href="${itemUrl}" data-sly-unwrap="${!itemUrl}">

            <div data-sly-use.image="image.js" data-sly-unwrap="false">

                    <img src="${image.src}" class="${image.cssClass} col_img"

                        data-emptytext="Info Page Wide Box"

                        usemap="${image.imageMaps.hash}" />

                </div>

                <div class='caption'>

                    <h4 class="thumbnailHeading">${properties.title}</h4>

                    <p class="thumbnailText">${properties.description}</p>

                </div>

        </a>

    </div>

</sly>

</div>

In AEM 6.3 , Is there any thump rule that all the components must have separate clientlibs ? . And all the clientlibs must come under /apps? If so going forward we should not have any Js under /etc ?

Can anyone please help us on this.

Replies

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

20-08-2018

Go to [1] and try to add /etc to the "Execution Paths" property.

[1] http://<host>:<port>/system/console/configMgr/org.apache.sling.servlets.resolver.SlingServletResolve...

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

20-08-2018

Moving forward - all clientlibs should be moved from /etc to under /apps.

Avatar

Avatar

velparic1097644

Avatar

velparic1097644

velparic1097644

21-08-2018

Hi,

       Thanks  for your help, I had tried this step(Placing the '/etc' under exclusion path) but no luck still the issue was not re-solved.Still the Issue exists.