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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Cannot access design id using ${currentDesign.id} in AEM 6.5.

veerareddyc2547
Level 3
Level 3

We are currently upgrading AEM instance from 6.1 to 6.5. While going through the adobe documents for repository restructuring, it is mentioned to move the existing designs from "/etc/designs/" to "/apps/settings/wcm/designs".

When the designs are under "/etc/designs" we were able to access the design name via ${currentDesign.id} in html code. But when the designs are moved under "/apps" or "/libs" the ${currentDesign.id} returns the entire path of the design. 

For example, lets say my design name is "page_design". When i reference it from /etc path, ${currentDesign.id} returns "page_design". But i reference it from "/apps"or "/libs"  it returns "/apps/settings/wcm/designs/page_design".

Is it the working behaviour of the AEM 6.5 or did i miss anything in the process ?

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

Hi,

It could be the behavior. you can trim paths to get if returns path.

View solution in original post

1 Reply
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

Hi,

It could be the behavior. you can trim paths to get if returns path.

View solution in original post