<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How Can we embed  external HTML files in Nuxeo Platform in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-we-embed-external-html-files-in-nuxeo-platform/m-p/327459#M14460</link>
    <description>&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2017 10:43:43 GMT</pubDate>
    <dc:creator>amitgoda</dc:creator>
    <dc:date>2017-07-21T10:43:43Z</dc:date>
    <item>
      <title>How Can we embed  external HTML files in Nuxeo Platform</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-we-embed-external-html-files-in-nuxeo-platform/m-p/327457#M14458</link>
      <description>&lt;P&gt;Hi All,
I want to embed some custom HTML file in my content view. How can we achieve the same ?&lt;/P&gt;
&lt;P&gt;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 ?&lt;/P&gt;
&lt;P&gt;Edit&lt;/P&gt;
&lt;P&gt;I have tried following things so far,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Using the following &lt;A href="https://doc.nuxeo.com/nxdoc/custom-layout-and-widget-templates/"&gt;link&lt;/A&gt; 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.&lt;/LI&gt;
&lt;LI&gt;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&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="layouts"&amp;gt;
    &amp;lt;layout name="req_custom_template"&amp;gt;
      &amp;lt;aliases&amp;gt;
        &amp;lt;alias&amp;gt;Custom Template&amp;lt;/alias&amp;gt;
      &amp;lt;/aliases&amp;gt;
     &amp;lt;columns&amp;gt;
        &amp;lt;column name="last_contributor"&amp;gt;
          &amp;lt;widget&amp;gt;req_custom_widget&amp;lt;/widget&amp;gt;
        &amp;lt;/column&amp;gt;
      &amp;lt;/columns&amp;gt;
    &amp;lt;/layout&amp;gt;
 &amp;lt;/extension&amp;gt;

&amp;lt;extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
   point="widgets"&amp;gt;
  &amp;lt;widget name="req_custom_widget" type="template"&amp;gt;
    &amp;lt;labels&amp;gt;
      &amp;lt;label mode="any"&amp;gt;&amp;lt;/label&amp;gt;
    &amp;lt;/labels&amp;gt;
    &amp;lt;translated&amp;gt;false&amp;lt;/translated&amp;gt;
    &amp;lt;fields&amp;gt;
      &amp;lt;field&amp;gt;data&amp;lt;/field&amp;gt;
    &amp;lt;/fields&amp;gt;
      &amp;lt;properties widgetMode="any"&amp;gt;
        &amp;lt;property name="template"&amp;gt;/layouts/external_html.xhtml&amp;lt;/property&amp;gt;
    &amp;lt;/properties&amp;gt;
  &amp;lt;/widget&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and provided my custom template in &lt;CODE&gt;NUXEO_HOME/templates/custom/layouts&lt;/CODE&gt; directory and published my content. And In studio, when I see the &lt;CODE&gt;External Layouts&lt;/CODE&gt; dropdown for Document, I see as below,&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://i.stack.imgur.com/H7cSO.png" alt="enter image description here" /&gt;&lt;/P&gt;
&lt;P&gt;However, I found that in the document creation layout there is an existing widget called &lt;CODE&gt;template&lt;/CODE&gt;and tried using my XHTML file there and use it. Upon publishing, I see my custom HTML content (which is great).&lt;/P&gt;
&lt;P&gt;Still I would like to know what is the correct way of doing this.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 09:57:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-we-embed-external-html-files-in-nuxeo-platform/m-p/327457#M14458</guid>
      <dc:creator>amitgoda</dc:creator>
      <dc:date>2017-07-17T09:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How Can we embed  external HTML files in Nuxeo Platform</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-we-embed-external-html-files-in-nuxeo-platform/m-p/327458#M14459</link>
      <description>&lt;P&gt;This was also asked on StackOverflow&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 14:33:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-we-embed-external-html-files-in-nuxeo-platform/m-p/327458#M14459</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-07-20T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: How Can we embed  external HTML files in Nuxeo Platform</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-we-embed-external-html-files-in-nuxeo-platform/m-p/327459#M14460</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 10:43:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-we-embed-external-html-files-in-nuxeo-platform/m-p/327459#M14460</guid>
      <dc:creator>amitgoda</dc:creator>
      <dc:date>2017-07-21T10:43:43Z</dc:date>
    </item>
  </channel>
</rss>

