Expand my Community achievements bar.

SOLVED

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

Avatar

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

Avatar

Correct answer by
Community Advisor

Hi,

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



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

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



Arun Patidar