<?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 Freemarker templates + URL parameters in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34583#M18123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I build a presentation template in Freemarker. It's actually only one method that accepts different parameters to launch some Lucene search query and returns the result as an HTML list. So far, so good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The parameters are defined in the beginning of my template file so I need to build another template to change these parameters (don't want to display multiple lists on the same page). I'll probably need around 10 different searches so it would be better to get these paramters from the URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this way I can build a seach query just by adding the right parameters like I would do in any web scripting language. Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jun 2006 16:22:53 GMT</pubDate>
    <dc:creator>simon</dc:creator>
    <dc:date>2006-06-15T16:22:53Z</dc:date>
    <item>
      <title>Freemarker templates + URL parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34583#M18123</link>
      <description>Hi,I build a presentation template in Freemarker. It's actually only one method that accepts different parameters to launch some Lucene search query and returns the result as an HTML list. So far, so good.The parameters are defined in the beginning of my template file so I need to build another temp</description>
      <pubDate>Thu, 15 Jun 2006 16:22:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34583#M18123</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-06-15T16:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker templates + URL parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34584#M18124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Alfresco 1.3, any templates launched via the Template Content Servlet have a root Map object called "args" available to them that contains all URL arguments passed to the servlet.&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>Fri, 16 Jun 2006 10:36:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34584#M18124</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-06-16T10:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker templates + URL parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34585#M18125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin, that is good news. Don't know how to get this to work though…&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;spaceID&amp;gt;/workspace/SpacesStore/&amp;lt;templateID&amp;gt;?someparam=somevalue&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;doesn't seem to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#if args?exists&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Gentlemen, print your arguments please: ${args}&lt;BR /&gt;&amp;lt;/#if&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;This code doesn't print my "someparam" parameter, I'm triyng this in the 1.3 preview release. What should I do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 15:18:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34585#M18125</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-06-16T15:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker templates + URL parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34586#M18126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Appologies, I should have said "1.3 final" - as it's not in the preview release.&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>Fri, 16 Jun 2006 16:12:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34586#M18126</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-06-16T16:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker templates + URL parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34587#M18127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK Kevin, I'll have to wait for now and create like 20 redundant template files for the same result.&amp;nbsp; :shock: I wont keep you up much longer, you have better things to do (= finalizing 1.3).&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 16:18:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-templates-url-parameters/m-p/34587#M18127</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-06-16T16:18:11Z</dc:date>
    </item>
  </channel>
</rss>

