<?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 Accessing 'model' within test.get.head.ftl in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-model-within-test-get-head-ftl/m-p/268096#M221226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am building a webscript with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- a controler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- a freemarker template for the html response &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- a second freemarker template for the html head response &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am feeding the "model" object within the controler and I would like to know if it is possible to have access to this object in the freemarker head?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works perfectly within the freemarker template of the html response but without success in the freemarker template for the html head response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 08:56:31 GMT</pubDate>
    <dc:creator>stephama</dc:creator>
    <dc:date>2011-05-24T08:56:31Z</dc:date>
    <item>
      <title>Accessing 'model' within test.get.head.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-model-within-test-get-head-ftl/m-p/268096#M221226</link>
      <description>Hello,I am building a webscript with:- a controler- a freemarker template for the html response - a second freemarker template for the html head response I am feeding the "model" object within the controler and I would like to know if it is possible to have access to this object in the freemarker he</description>
      <pubDate>Tue, 24 May 2011 08:56:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-model-within-test-get-head-ftl/m-p/268096#M221226</guid>
      <dc:creator>stephama</dc:creator>
      <dc:date>2011-05-24T08:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing 'model' within test.get.head.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-model-within-test-get-head-ftl/m-p/268097#M221227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;which is the error you're getting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 12:24:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-model-within-test-get-head-ftl/m-p/268097#M221227</guid>
      <dc:creator>fstnboy</dc:creator>
      <dc:date>2011-06-17T12:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing 'model' within test.get.head.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-model-within-test-get-head-ftl/m-p/268098#M221228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The model is not available in the head template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One reason for this design decision is that the head template only gets included *once* for *multiple* instances of the same component within a page. therefore the dynamic code will only be run once, which might not be what you intended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's no problem adding dynamic &amp;lt;script&amp;gt; and &amp;lt;link&amp;gt; tags to the &amp;lt;body&amp;gt;, many modern web apps and sites use this technique today.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 12:30:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-model-within-test-get-head-ftl/m-p/268098#M221228</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2011-06-17T12:30:39Z</dc:date>
    </item>
  </channel>
</rss>

