AEM 5.6.1 Retrieve html from dam inside a component for render

Avatar

Avatar

luisalbertogg

Avatar

luisalbertogg

luisalbertogg

17-10-2017

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

17-10-2017

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.

Answers (1)

Answers (1)

Avatar

Avatar

luisalbertogg

Avatar

luisalbertogg

luisalbertogg

18-10-2017

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.