Skip to main content
Level 3
February 25, 2020
Solved

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

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
February 25, 2020

Hi,

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

Arun Patidar

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
February 25, 2020

Hi,

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

Translate
Arun Patidar