cancel
Showing results for 
Search instead for 
Did you mean: 

Creating webform that accept importing of an html fil

uvi
Champ in-the-making
Champ in-the-making
Hi,

I've an important question for you.
I have to create a web form that accept importing of html file.
I would like that the web form use the HTML file to automatically generate a piece of web page directly from the content included on html file.
2 REPLIES 2

uvi
Champ in-the-making
Champ in-the-making
Anyone have an idea?

zaizi
Champ in-the-making
Champ in-the-making
Use the File picker widget to select your HTML file (more details: http://wiki.alfresco.com/wiki/Configuring_XForms_Widgets#Restricting_File_Picker_to_content_types_an...).

The create a Freemarker rendering template to render an HTML output and include the contents of the other HTML file selected using Freemarker's include directive: http://freemarker.sourceforge.net/docs/ref_directive_include.html.

Examples of Freemaker rendering templates can be found at http://wiki.alfresco.com/wiki/WCM_Forms_Rendering#Example.