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!
Views
Replies
Total Likes
Use content fragment instead or iframe tag
Views
Replies
Total Likes
Are you able to see the file content when you are directly accessing it from browser?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
See this thread - HTML in DAM - according to SHAM - is blacklisted - Including an html file from DAM within an html
Views
Replies
Total Likes