Forum Discussion
mahesh_revanwar
Expert
Hi miikka,
I think you have to use ifrmae for adding .html file to custom component.
example:
File name: 1.html
<html> <body> <h1>Header file</h1> <body> </html>
File name: 2.html
<html> <body> <iframe src="1.html"></iframe> <h2>header2 file</h2> <body> </html>
Regards,
Mahesh Revanwar
If my post is helpful and answers your question, please give "Kudos" and "Accept it as a Solution."
miikka
10 years agoMaven
Hi Mahesh,
and thanks for your response. The suggestion of using an iframe could work in certain scenarios but unfortunately it does not work for me. The HTML piece I'm trying to include in a component has a few dynamic elements (like user name) which can be parsed when included (according to FreeMarker syntax). And the template we have does not really allow iframes to be used. So I need to figure out some other way then.
Cheers,
Miikka
Related Content
- 4 years ago
- 10 years ago