Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 5.6.1 Retrieve html from dam inside a component for render

luisalbertogg
Level 1
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
smacdonald2008
Correct answer by
Level 10
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
smacdonald2008
Correct answer by
Level 10
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

luisalbertogg
Level 1
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.