<?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: MySpaces webscript - show FirstName of documents creator in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159808#M113831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At the moment the script logic is all held within the Freemarker template - the .ftl file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The list of documents is created from&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#list companyhome.nodeByReference[args.h].children?sort_by('name') as d&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;BR /&gt;&lt;SPAN&gt;You need to create a new Javascript file (called myspacespanel.get.js) into which you move this query. Next, the Javascript walks through the collection of documents populating the firstName as described above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These references should be useful if you're unfamiliar with webscripts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Template_Guide" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Template_Guide&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API&lt;/A&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, 29 Feb 2008 10:05:51 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2008-02-29T10:05:51Z</dc:date>
    <item>
      <title>MySpaces webscript - show FirstName of documents creator</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159803#M113826</link>
      <description>Hi, I would modify MySpace web script. I would to show firstame of document crator and name of document modifier instead its userid.How can I do it? Where is the code that shows docs info(description, title, creator etc.)? Please help mesorry for my english</description>
      <pubDate>Thu, 21 Feb 2008 11:32:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159803#M113826</guid>
      <dc:creator>robertoroberto</dc:creator>
      <dc:date>2008-02-21T11:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: MySpaces webscript - show FirstName of documents creator</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159804#M113827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have a look into myspacespanel.get.html.ftl&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>Thu, 21 Feb 2008 11:46:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159804#M113827</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-02-21T11:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: MySpaces webscript - show FirstName of documents creator</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159805#M113828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't understand how get firstname from document.properties.modifier&amp;nbsp; in ftl file…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;please help me&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 15:51:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159805#M113828</guid>
      <dc:creator>robertoroberto</dc:creator>
      <dc:date>2008-02-28T15:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: MySpaces webscript - show FirstName of documents creator</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159806#M113829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry - I forgot the People API (to look-up a person object from a username) isn't available to Freemarker, only JavaScript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'd have to modify the web script so that the docs collection was populated in JavaScript. The script would also use the People API to look up the firstName from the username and store it as a string in the docs collection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The template would render this generated docs collection (rather than the one it currently generates), where the firstName would now become available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess at some point we'll make the People API available from Freemarker templates directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 21:01:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159806#M113829</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-02-28T21:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: MySpaces webscript - show FirstName of documents creator</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159807#M113830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I can't integrate javascipt API and ftl? &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where is the script that popoulate the infos of docs collection for myspacespanels?Can you help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sotty for my english?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 09:18:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159807#M113830</guid>
      <dc:creator>robertoroberto</dc:creator>
      <dc:date>2008-02-29T09:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: MySpaces webscript - show FirstName of documents creator</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159808#M113831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At the moment the script logic is all held within the Freemarker template - the .ftl file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The list of documents is created from&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#list companyhome.nodeByReference[args.h].children?sort_by('name') as d&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;BR /&gt;&lt;SPAN&gt;You need to create a new Javascript file (called myspacespanel.get.js) into which you move this query. Next, the Javascript walks through the collection of documents populating the firstName as described above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These references should be useful if you're unfamiliar with webscripts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Template_Guide" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Template_Guide&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API&lt;/A&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, 29 Feb 2008 10:05:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myspaces-webscript-show-firstname-of-documents-creator/m-p/159808#M113831</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-02-29T10:05:51Z</dc:date>
    </item>
  </channel>
</rss>

