<?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: Solved: ${name} in freemarker template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140354#M98314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, i have tried this &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;M.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 14:23:43 GMT</pubDate>
    <dc:creator>mvlach</dc:creator>
    <dc:date>2008-01-29T14:23:43Z</dc:date>
    <item>
      <title>Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140352#M98312</link>
      <description>Hi,is there any possibility to get the name of the webform ? Let's imagine:I have webform news and create the content news1. Freemarker render news1.xml to news1.html - and i would like to know the name "news1" in the template.Is this possible ?Thanks Mila</description>
      <pubDate>Tue, 29 Jan 2008 12:18:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140352#M98312</guid>
      <dc:creator>mvlach</dc:creator>
      <dc:date>2008-01-29T12:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140353#M98313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ${name}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 14:16:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140353#M98313</guid>
      <dc:creator>mikef</dc:creator>
      <dc:date>2008-01-29T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140354#M98314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, i have tried this &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;M.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 14:23:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140354#M98314</guid>
      <dc:creator>mvlach</dc:creator>
      <dc:date>2008-01-29T14:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140355#M98315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One of the following can be used:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;${alf.form_instance_data_file_name}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;${alf.rendition_file_name}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, these we will return "news1.xml" and "news1.html" so you will need to strip off the file suffix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See also:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Rendering_engine_variables_and_functions" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Rendering_engine_variables_and_functions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 14:36:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140355#M98315</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2008-01-29T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140356#M98316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is good, but can I know the renedition names and associated xml file in the deployment server code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vijay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 21:08:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140356#M98316</guid>
      <dc:creator>vijay_alfresco</dc:creator>
      <dc:date>2008-06-19T21:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140357#M98317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes. If you are doing an Alfresco to Alfresco deployment. If you are doing an Alfresco to File Server deployment, then you'll just have a bunch of files on the file system. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is it that you are trying to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ainga&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 22:31:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140357#M98317</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2008-06-19T22:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140358#M98318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ainga is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The web-form AVM nodes holding the XML, contains a collection property called "{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/wcmappmodel/1.0}renditions" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/wcmappmodel/1.0}renditions&lt;/A&gt;&lt;SPAN&gt;" with a list of the generated rendition files associated with this web-form. Whilst the rendition nodes themselves have the property "{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/wcmappmodel/1.0}primaryforminstancedata" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/wcmappmodel/1.0}primaryforminstancedata&lt;/A&gt;&lt;SPAN&gt;" that points back at the web-form XML instance that created it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, you could embed the info in the rendition output, possibly into an accompanying custom XML file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.ixxus.com" rel="nofollow noopener noreferrer"&gt;http://www.ixxus.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 11:13:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140358#M98318</guid>
      <dc:creator>tommorris</dc:creator>
      <dc:date>2008-06-20T11:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140359#M98319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes. If you are doing an Alfresco to Alfresco deployment. If you are doing an Alfresco to File Server deployment, then you'll just have a bunch of files on the file system.&lt;BR /&gt;&lt;BR /&gt;What is it that you are trying to do?&lt;BR /&gt;&lt;BR /&gt;Ainga&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, but given a webform (comes as &lt;/SPAN&gt;&lt;STRONG&gt;.xml &lt;/STRONG&gt;&lt;SPAN&gt; file in deployment server), I want to know the associated reneditions and mimetypes or just the file names of the rendered files asssociated to the xml. I am using Alfresco to File system deployment and I know I'll get all the files even the rendered files in the deployment server, but I want to get the associated files for a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;given&lt;/SPAN&gt;&lt;STRONG&gt; .xml file (webform output).&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vijay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jun 2008 15:50:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140359#M98319</guid>
      <dc:creator>vijay_alfresco</dc:creator>
      <dc:date>2008-06-22T15:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140360#M98320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right. There are two options to look up associations;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Hard code the locations. If you are generating the renditions in the same location as the .xml file or at a relative location, then you can just look it up. An example would be that renditions are of the same name in a sub folder called "renditions'. If the .xml file is in /somefolder/my.xml, the rendition would be in /somefolder/renditions/my.html (if the rendition is an html file). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Given the .xml file use webscripts to call back to you Alfresco installation to look up the associated files and renditions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jun 2008 16:10:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140360#M98320</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2008-06-22T16:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140361#M98321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah - and if you're stuck with solution 1 outlined above, I would try something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; my-webform-instance.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; my-rendition-1.html&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; my-rendition-2.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; my-webform-instance-meta.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where the first form is the actual output of the web form, and the following three files are renditions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The last rendition in this example contains any associated meta-data about the web-form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By using a consistent notation (i.e. use the same name as the web-form, but with the '-meta' suffix) you can find the file to query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:42:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140361#M98321</guid>
      <dc:creator>tommorris</dc:creator>
      <dc:date>2008-06-23T08:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: ${name} in freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140362#M98322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for replies, I agree having third renedition, but the problem is having another file for each webform in the filesystem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the best solution would be to use a webscript to get the renedition templates for a given webform.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 14:28:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-name-in-freemarker-template/m-p/140362#M98322</guid>
      <dc:creator>vijay_alfresco</dc:creator>
      <dc:date>2008-06-23T14:28:44Z</dc:date>
    </item>
  </channel>
</rss>

