AEM | Project structure mapping | Community
Skip to main content
New Participant
September 20, 2023
Solved

AEM | Project structure mapping

  • September 20, 2023
  • 3 replies
  • 955 views

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.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Suraj_Kamdi

@prashanthal  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

3 replies

Sudheer_Sundalam
New Participant
September 21, 2023

@prashanthal ,

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.

kautuk_sahni
Employee
September 21, 2023

@prashanthal 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
Suraj_Kamdi
Suraj_KamdiAccepted solution
New Participant
September 20, 2023

@prashanthal  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