AEM 5.6.1 Retrieve html from dam inside a component for render

Avatar

Avatar
Validate 1
Level 1
luisalbertogg
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
luisalbertogg
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
luisalbertogg
Level 1

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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

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

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
luisalbertogg
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
luisalbertogg
Level 1

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.