How Can we embed external HTML files in Nuxeo Platform

Hi All, I want to embed some custom HTML file in my content view. How can we achieve the same ?

Can anyone tell me how can I embed a custom HTML template in my Nuxeo content View. Basically, I want to load an HTML file using IFrame in Nuxeo. Is this possible ?


I have tried following things so far,

  • Using the following link tried to understand how to create a custom layout and widget but the document just explains on how to create custom layout and widget and not how to confgiure them.
  • Seeing some of the existing examples on Nuxeo forum I see that we can use extension points but again this is very high level and doesn't have thorough explaination on how you configure the templates defined in extension points. I tried creating my custom extension as below
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    <layout name="req_custom_template">
        <alias>Custom Template</alias>
        <column name="last_contributor">

<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
  <widget name="req_custom_widget" type="template">
      <label mode="any"></label>
      <properties widgetMode="any">
        <property name="template">/layouts/external_html.xhtml</property>

and provided my custom template in NUXEO_HOME/templates/custom/layouts directory and published my content. And In studio, when I see the External Layouts dropdown for Document, I see as below,

enter image description here

However, I found that in the document creation layout there is an existing widget called templateand tried using my XHTML file there and use it. Upon publishing, I see my custom HTML content (which is great).

Still I would like to know what is the correct way of doing this.

0 votes

0 answers



This was also asked on StackOverflow: Please don't ask questions in two places.

Hi, I understand that I should be using this forum for QA's but as there was no response and I just wanted to check on SO if I could get some light on it. I wanted to have some breakthrough on this as Its been already more than 2 days and there was no comment whether its possible to do that or not. I have asked couple of other questions as well on this forum but I dont see any response on them either.