I've created a module that allows to insert HTML fragments inside it.
These HTML fragments (plain HTML pages) will be created by the user of the CMS in the virtual file system /sites/default/.
Can I access from my module to the HTML file and insert it into the generated page? how?
When I use an iFrame, an image or link everything works fine... because all these elements have a src attribute. For example:
<iframe src="/opencms/demo_en/myfile.html"></iframe>
However, when I use the openCMS tag < cms:include > or the JSP tag < jsp:include > it doesn't work... why?
<cms:include page="/opencms/demo_en/myfile.html"></cms:include>
throws:
org.opencms.file.CmsVfsResourceNotFoundException: Unable to read resource "/opencms/demo_en/myfile.html"
Could it be a permissions problem?
So .. Should I do this with an iFrame? Is there a better way to access and embed this HTML resource?
Thanks in advance!