<?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 breaks on folders starting with a number in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-breaks-on-folders-starting-with-a-number/m-p/71767#M46521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Alf,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Freemarker template with the following Lucene search query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#list companyhome.childrenByLuceneSearch["(PATH:\"/app:company_home/cm:Extranet/cm:Test//*\") AND (TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}folder\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}folder\&lt;/A&gt;" NOT TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}systemfolder\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}systemfolder\&lt;/A&gt;")"] as child&amp;gt;&lt;BR /&gt;[…]&lt;BR /&gt;&amp;lt;#/list&amp;gt;&lt;BR /&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;This works fine for folders starting with an alphanumeric characters but if a folder starts with a number the template breaks (lots of our folders start with 2006_somename). The folder works fine in the web client, CIFS and all other interfaces but Freemarker fails to recognize this folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It has something to do with the conversion of the first character, when I look in the node browser to the same space I get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{&lt;A href="http://www.alfresco.org/model/content/1.0}_x0037_005_x0020_PTC" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}_x0037_005_x0020_PTC&lt;/A&gt; (web client view shows "2005 PTC")&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;I'm replacing the spaces with _x0020_ but should I replace the first number as wel? "Replace the first number and only the first number if the spaces starts with this number to their strange value" doesn't sound like the ideal solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2006 08:27:17 GMT</pubDate>
    <dc:creator>simon</dc:creator>
    <dc:date>2006-09-05T08:27:17Z</dc:date>
    <item>
      <title>Freemarker breaks on folders starting with a number</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-breaks-on-folders-starting-with-a-number/m-p/71767#M46521</link>
      <description>Hi Alf,I have a Freemarker template with the following Lucene search query:&amp;lt;#list companyhome.childrenByLuceneSearch["(PATH:\"/app:company_home/cm:Extranet/cm:Test//*\") AND (TYPE:\"{http://www.alfresco.org/model/content/1.0}folder\" NOT TYPE:\"{http://www.alfresco.org/model/content/1.0}systemfol</description>
      <pubDate>Tue, 05 Sep 2006 08:27:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-breaks-on-folders-starting-with-a-number/m-p/71767#M46521</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-09-05T08:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker breaks on folders starting with a number</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-breaks-on-folders-starting-with-a-number/m-p/71768#M46522</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;PATH uses ISO9075 to encode what are in effect XML element names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is consistent with XPATH use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the classes ISO9075 and ISO9075Test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure if there is any helper function in the freemarker model to support this encoding…..I will have a look ….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 08:48:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-breaks-on-folders-starting-with-a-number/m-p/71768#M46522</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-09-05T08:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker breaks on folders starting with a number</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-breaks-on-folders-starting-with-a-number/m-p/71769#M46523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The qname encoded path for a space has been added to the 1.4 freemarker API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;qnamePath &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; returns the QName based Path to the node. This is useful for building Lucene PATH: style queries that constrain to a path location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Template_Guide#Extended_TemplateNode_Model_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Template_Guide#Extended_TemplateNode_Model_API&lt;/A&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, 05 Sep 2006 08:52:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-breaks-on-folders-starting-with-a-number/m-p/71769#M46523</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-09-05T08:52:31Z</dc:date>
    </item>
  </channel>
</rss>

