Cannot access design id using ${currentDesign.id} in AEM 6.5. | Adobe Higher Education
Skip to main content
Level 3
February 25, 2020
Respondido

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

  • February 25, 2020
  • 1 resposta
  • 1295 Visualizações

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 ?

Este tópico foi fechado para respostas.
Melhor resposta por arunpatidar

Hi,

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

1 Resposta

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorResposta
Community Advisor
February 25, 2020

Hi,

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

Arun Patidar