Hi. Does Sightly provide any functionality for an html file placed in the DAM to be included in another html. I've tried data-sly-include but that didn't seem to work for html files placed in the DAM.
Thanks in advance!
Solved! Go to Solution.
Views
Replies
Total Likes
By default html from dam is blacklisted. Have you removed text/html at
Or
http://host:port/system/console/configMgr/com.day.cq.dam.core.impl.servlet.SafeBinaryGetServlet
Views
Replies
Total Likes
Can you please elaborate on the requirement?
Thanks,
Kishore
Views
Replies
Total Likes
What are you trying to do - nest HTML?
Views
Replies
Total Likes
I have an html file in my DAM with the following content in it :
<p> Line 1 </p> <p> Line 2 </p>
I'd like to place this content within an html of one of my components. As I mentioned earlier, I've tried using data-sly-include in the component specifying the path of the file in the DAM but that didn't work out.
PS. I was able to implement this using <div w3-include-html="path to DAM asset"> but was wondering if Sightly provides any way to do the same.
Views
Replies
Total Likes
To display HTML located in the dam into a Sighly component - try using syntax @ http://www.w3schools.com/howto/howto_html_include.asp. The reason why include does not work is because the HTML in the DAM does not have a resource type. Its an asset like a JPG - and can be referenced using an URL.
Views
Replies
Total Likes
What is the file type stored in the DAM ?
I would recommend to store HTML as a property of a node. Then read that property to be included.
Views
Replies
Total Likes
By default html from dam is blacklisted. Have you removed text/html at
Or
http://host:port/system/console/configMgr/com.day.cq.dam.core.impl.servlet.SafeBinaryGetServlet
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies