Expand my Community achievements bar.

SOLVED

AEM 5.6.1 Retrieve html from dam inside a component for render

Avatar

Level 1

Is it possible to save a set of html files in dam and make a component that can choose and render one of them?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Not a typical use case. Typically images and videos are stored in the DAM. However - there is nothing preventing you from storing HTML files in the DAM and have a component read the HTML located in a file and render it. Just a very unusual use case.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Not a typical use case. Typically images and videos are stored in the DAM. However - there is nothing preventing you from storing HTML files in the DAM and have a component read the HTML located in a file and render it. Just a very unusual use case.

Avatar

Level 1

How can i do it if i have to get the code from inside a component and make it draggable. So far i've tried to acces the html properties using ResourceResolver without success.

Thank you.