Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

AEM | Project structure mapping

Avatar

Level 4

Hi Team,

 

I want to create email templates in AEM under /etc/notification/email folder in crx, But i want to create them from code base, in which folder of the project should create them ? i can't see /etc folder in maven project. Please help.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Prashanth_02a  go to ui.apps/src/main/content/META-INF/vault/filter.xml

and Inside filter.xml

add the following entry and save it. 

<filter root="/etc/notification/email" mode=""/>

now you can import your email templates from CRXde

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

@Prashanth_02a  go to ui.apps/src/main/content/META-INF/vault/filter.xml

and Inside filter.xml

add the following entry and save it. 

<filter root="/etc/notification/email" mode=""/>

now you can import your email templates from CRXde

Avatar

Administrator

@Prashanth_02a Did you find the suggestion from @Suraj_Kamdi helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni

Avatar

Community Advisor

@Prashanth_02a ,

You need to do two steps here to manage the email templates via code

1) Create your "email-template.html" under "/etc/notification/email" folder structure. If the folder structure is not present in the maven project, please create the folder structure under the "ui.apps" maven module in parallel with "/apps" folder (sibling to /apps folder).

 

2) As @Suraj_Kamdi mentioned, create an entry in the ui.apps module filter.xml to allow the "/etc/notification/email" path to be added in the AEM during the code deploment.