Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

/etc/desings is not getting called in AEM 6.3

Avatar

Avatar
Level 1
velparic1097644
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
velparic1097644
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile
velparic1097644
Level 1

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
Coach
Employee
jbrar
Employee

Likes

376 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

376 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

20-08-2018

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

Avatar

Avatar
Level 1
velparic1097644
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
velparic1097644
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile
velparic1097644
Level 1

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.