Highlighted

inject ".html" file from dam

Avatar

Avatar

balajik

Avatar

balajik

balajik

25-04-2018

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!

Replies

Highlighted

Avatar

Avatar

Hemant_arora

Avatar

Hemant_arora

Hemant_arora

25-04-2018

Use content fragment instead or iframe tag

Avatar

Avatar

edubey

Total Posts

1.5K

Likes

264

Correct Answer

392

Avatar

edubey

Total Posts

1.5K

Likes

264

Correct Answer

392
edubey

25-04-2018

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

Highlighted

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

25-04-2018

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

Highlighted

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

25-04-2018

See this thread - HTML in DAM - according to SHAM - is blacklisted - Including an html file from DAM within an html