<?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: Freemarker templates URL's without space assignment in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-s-without-space-assignment/m-p/31837#M16468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again Kevin. Your workaround seems like a nice way to solve the "when the node disappears" problem, I'll try this out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jul 2006 06:56:42 GMT</pubDate>
    <dc:creator>simon</dc:creator>
    <dc:date>2006-07-12T06:56:42Z</dc:date>
    <item>
      <title>Freemarker templates URL's without space assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-s-without-space-assignment/m-p/31835#M16466</link>
      <description>Alf,Small quick question this time. I have some templates that doesn't require a space to get the data. You can define templates that get the current space name but I have some templates that only use the companyhome.children for example.I'll still parse these templates with a full URL like this one</description>
      <pubDate>Fri, 07 Jul 2006 10:53:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-s-without-space-assignment/m-p/31835#M16466</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-07-07T10:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker templates URL's without space assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-s-without-space-assignment/m-p/31836#M16467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Small quick question this time. I have some templates that doesn't require a space to get the data. You can define templates that get the current space name but I have some templates that only use the companyhome.children for example.&lt;BR /&gt;&lt;BR /&gt;I'll still parse these templates with a full URL like this one:&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http://&amp;lt;server&amp;gt;/alfresco/template/workspace/SpacesStore/&amp;lt;spaceID&amp;gt;/workspace/SpacesStore/&amp;lt;templateID&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;Point is… I don't really need the first 50% of this URL, I only need the template. If use the direct link the Freemarker code isn't parsed. Any way to use a shorter URL to the template without having to assign some space fist?&lt;BR /&gt;&lt;BR /&gt;Why is this important? First of all, it ugly overhead and secondly… spaces may disappear and this could break my template which isn't even using that space.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;This is true and bad design on my part. I should have put the template noderef as the first arguments, not the last as it forces you to put a context first whether you need it or not. The theory at the time was that the template servlet was mostly going to be used to show the "default" template for a document/space - so you would generally only specify the document/space and not always specify the template itself - which is why it comes later on the URL. However it has been shown that this is not the general case…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a neat way around the problem, which is to specify the template itself as the context, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http://&amp;lt;server&amp;gt;/alfresco/template/workspace/SpacesStore/&amp;lt;templateID&amp;gt;/workspace/SpacesStore/&amp;lt;templateID&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Which means you don't need any other noderefs in your hand, but the URL is still long and annoying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For 1.4 we will be supporting "path" arguments for all servlets e.g you will be able to create URLs like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http://&amp;lt;server&amp;gt;/alfresco/template?templatePath=/Company%20Home/Data%20Dictionary/Presentation%20Templates/mytemplate.ftl&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Which will be very useful &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 10:47:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-s-without-space-assignment/m-p/31836#M16467</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-07-11T10:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker templates URL's without space assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-s-without-space-assignment/m-p/31837#M16468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again Kevin. Your workaround seems like a nice way to solve the "when the node disappears" problem, I'll try this out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2006 06:56:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-s-without-space-assignment/m-p/31837#M16468</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-07-12T06:56:42Z</dc:date>
    </item>
  </channel>
</rss>

