<?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: Add a fragment that displays the PDF content in my Tab in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/add-a-fragment-that-displays-the-pdf-content-in-my-tab/m-p/323361#M10362</link>
    <description>&lt;P&gt;Dear me,&lt;/P&gt;
&lt;P&gt;In your tab designer, you can add a template fragment with the following parameters:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Add 2 fields&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the first one is empty&lt;/LI&gt;
&lt;LI&gt;the second one containing file.content.filename&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;add the following properties&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;file_schema with the value file&lt;/LI&gt;
&lt;LI&gt;and file_property_name with the value file:content&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Look the following screenshot:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Screen_Shot_2013-08-19_at_11.51.09.png" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;And I attached the following xhtml fragment to the widget:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;div xmlns:nxd="http://nuxeo.org/nxweb/document"&amp;gt;
  &amp;lt;embed src="#{nxd:fileUrl('downloadFile', field_0, widget.properties.file_property_name, field_1)}" max-width="600" height="600" width="100%"/&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Aug 2013 11:41:27 GMT</pubDate>
    <dc:creator>Benjamin_Jalon1</dc:creator>
    <dc:date>2013-08-19T11:41:27Z</dc:date>
    <item>
      <title>Add a fragment that displays the PDF content in my Tab</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/add-a-fragment-that-displays-the-pdf-content-in-my-tab/m-p/323360#M10361</link>
      <description>&lt;P&gt;I would like to display the PDF stored into the file:content field directly in my tab, not the link to download it. How can I do that ?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 11:35:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/add-a-fragment-that-displays-the-pdf-content-in-my-tab/m-p/323360#M10361</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2013-08-19T11:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add a fragment that displays the PDF content in my Tab</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/add-a-fragment-that-displays-the-pdf-content-in-my-tab/m-p/323361#M10362</link>
      <description>&lt;P&gt;Dear me,&lt;/P&gt;
&lt;P&gt;In your tab designer, you can add a template fragment with the following parameters:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Add 2 fields&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the first one is empty&lt;/LI&gt;
&lt;LI&gt;the second one containing file.content.filename&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;add the following properties&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;file_schema with the value file&lt;/LI&gt;
&lt;LI&gt;and file_property_name with the value file:content&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Look the following screenshot:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Screen_Shot_2013-08-19_at_11.51.09.png" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;And I attached the following xhtml fragment to the widget:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;div xmlns:nxd="http://nuxeo.org/nxweb/document"&amp;gt;
  &amp;lt;embed src="#{nxd:fileUrl('downloadFile', field_0, widget.properties.file_property_name, field_1)}" max-width="600" height="600" width="100%"/&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2013 11:41:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/add-a-fragment-that-displays-the-pdf-content-in-my-tab/m-p/323361#M10362</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2013-08-19T11:41:27Z</dc:date>
    </item>
  </channel>
</rss>

