<?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: Accessing Variables in Nuxeo Document Templates in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/accessing-variables-in-nuxeo-document-templates/m-p/325136#M12137</link>
    <description>&lt;P&gt;Use &lt;CODE&gt;${doc.template.prop}&lt;/CODE&gt; to access properties in FTL.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2012 19:57:30 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2012-08-30T19:57:30Z</dc:date>
    <item>
      <title>Accessing Variables in Nuxeo Document Templates</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/accessing-variables-in-nuxeo-document-templates/m-p/325135#M12136</link>
      <description>&lt;P&gt;I am using Nuxeo 5.6 RC2 for document templating.
I made a custom schema to use the variables in document template.&lt;/P&gt;
&lt;P&gt;I did the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Created a custom schema,"template" with prefix "tem" and registered.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;CODE&gt; &amp;lt; extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt; &amp;lt; schema name="template" prefix="tem" src="data/schemas/template.xsd"/&amp;gt; &amp;lt; /extension&amp;gt;
`  &lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;&lt;P&gt;Extended it to the "Document&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt; extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype"&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt; &amp;lt; doctype name="template" extends="Document"&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt;   &amp;lt; schema name="template"/&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt;   &amp;lt; schema name="dublincore"/&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt;   &amp;lt; schema name="common"/&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt;   &amp;lt; schema name="uid"/&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt;  &amp;lt; schema name="file"/&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt;   &amp;lt; facet name="Downloadable"/&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt;   &amp;lt; facet name="Versionable"/&amp;gt;
&lt;BR /&gt;
&lt;CODE&gt;   &amp;lt; facet name="HasRelatedText"/&amp;gt;
&lt;CODE&gt; &amp;lt; /doctype&amp;gt;
&amp;lt; /extension&amp;gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Created screens to store custom schema,property(e.g tem:prop).I am successfully able to store the values.Hence,this confirms that my schema registration and value storage is fine.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;i use the variable in the document template like this:&lt;/P&gt;
&lt;P&gt;&amp;lt;#list This as doc&amp;gt;
${doc["tem:prop"]}"
&lt;CODE&gt;  &amp;lt; /#list&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;But this gives me the exception of unknown property ,"tem:prop"&lt;/P&gt;
&lt;P&gt;If i access any dublin core schema variable,it works fine.But the custom schema extending
Document is not accessed.&lt;/P&gt;
&lt;P&gt;Can someone please guide me that the document templating in Nuxeo 5.6 RC2 can be used with dublin core schema only or i have missed something.?
Please help&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2012 08:25:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/accessing-variables-in-nuxeo-document-templates/m-p/325135#M12136</guid>
      <dc:creator>catherine_</dc:creator>
      <dc:date>2012-08-27T08:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Variables in Nuxeo Document Templates</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/accessing-variables-in-nuxeo-document-templates/m-p/325136#M12137</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;${doc.template.prop}&lt;/CODE&gt; to access properties in FTL.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 19:57:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/accessing-variables-in-nuxeo-document-templates/m-p/325136#M12137</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-08-30T19:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Variables in Nuxeo Document Templates</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/accessing-variables-in-nuxeo-document-templates/m-p/325137#M12138</link>
      <description>&lt;P&gt;Although `${doc["tem&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 19:59:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/accessing-variables-in-nuxeo-document-templates/m-p/325137#M12138</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-08-30T19:59:22Z</dc:date>
    </item>
  </channel>
</rss>

