Expand my Community achievements bar.

inject ".html" file from dam

Avatar

Level 1

Hi ,
We are trying to inject ".html" file from dam to page. We have created path field to select dam path in component dialog. But when we include file either using slightly resource tag or slightly include tag, data comes empty in view source. Could you please help us to get html file data from dam on page using slightly.

Thanks in advance!

4 Replies

Avatar

Level 8

Use content fragment instead or iframe tag

Avatar

Level 10

Are you able to see the file content when you are directly accessing it from browser?

Avatar

Level 10

Content fragments are the best way to proceed here. Storing HTML in the DAM is not considered best practice when you want to display content. See this topic: Page Authoring with Content Fragments