내 커뮤니티 업적 표시줄을 확대합니다.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Content fragment - servlet

Avatar

Level 4

Hi guys,

I'm using AEM 6.2. Long story short, I have a servlet which sends a registration success email.

It's that possible to use a content fragment as a way for the author to modify the text template for my email ?
For now the email text template is hardcoded into the registration servlet.

Thank you !

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 9

You can use the Content Fragment Manager API to fetch the content of the content fragment.

ContentFragmentManager ("The Adobe AEM Quickstart and Web Application.")

ContentFragment ("The Adobe AEM Quickstart and Web Application.")

Here is an example: Use this code in your servlet

Customizing and Extending Content Fragments

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Level 9

You can use the Content Fragment Manager API to fetch the content of the content fragment.

ContentFragmentManager ("The Adobe AEM Quickstart and Web Application.")

ContentFragment ("The Adobe AEM Quickstart and Web Application.")

Here is an example: Use this code in your servlet

Customizing and Extending Content Fragments

Avatar

Level 10

Great answer!