<?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: Extending Collaboration Sites with Aspect, Properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/extending-collaboration-sites-with-aspect-properties/m-p/232447#M185577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same problem.Did you ever figure this out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nobody in the forum seems to have the answer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Jan 2011 14:45:42 GMT</pubDate>
    <dc:creator>acorona</dc:creator>
    <dc:date>2011-01-23T14:45:42Z</dc:date>
    <item>
      <title>Extending Collaboration Sites with Aspect, Properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extending-collaboration-sites-with-aspect-properties/m-p/232446#M185576</link>
      <description>Hello,Our company wants to extend Share Collaboration Sites by adding an aspect to the site which contains custom properties.&amp;nbsp; I've done so by defining an aspect called "project" in siteModel.xml.&amp;nbsp; I have successfully modified sites.post.json.js so that when the user creates a site via the default d</description>
      <pubDate>Thu, 25 Mar 2010 17:40:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extending-collaboration-sites-with-aspect-properties/m-p/232446#M185576</guid>
      <dc:creator>alfcpd</dc:creator>
      <dc:date>2010-03-25T17:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extending Collaboration Sites with Aspect, Properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extending-collaboration-sites-with-aspect-properties/m-p/232447#M185577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same problem.Did you ever figure this out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nobody in the forum seems to have the answer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 14:45:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extending-collaboration-sites-with-aspect-properties/m-p/232447#M185577</guid>
      <dc:creator>acorona</dc:creator>
      <dc:date>2011-01-23T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extending Collaboration Sites with Aspect, Properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extending-collaboration-sites-with-aspect-properties/m-p/232448#M185578</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 had the same problem too. It seems that site.node.save() doesn't save the modified properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My custom code in site.put.json.js was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;for ( var prop in site.node.properties) {&lt;BR /&gt;logger.log("BEFORE. " + prop + " —&amp;gt; " + site.node.properties[prop]);&lt;BR /&gt;if (prop.indexOf("myprop") != -1) {&lt;BR /&gt;site.node.properties[prop] = json.get("myprop");&lt;BR /&gt;site.node.save();&lt;BR /&gt;}&lt;BR /&gt;logger.log("AFTER. " + prop + " —&amp;gt; " + site.node.properties[prop]);&lt;BR /&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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;The traces show that before and after have the same value, despite changes from site (I tried site.save() too), but nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I found to fix this is replace by a java backed webscript, because it seems that org.alfresco.repo.site.script.ScriptSiteService or org.alfresco.repo.site.script.Site are failing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice if the webscript updates any custom properties (site.put.json only is prepared to update title, description and visibility….)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adrian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2011 17:10:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extending-collaboration-sites-with-aspect-properties/m-p/232448#M185578</guid>
      <dc:creator>ajv</dc:creator>
      <dc:date>2011-08-21T17:10:02Z</dc:date>
    </item>
  </channel>
</rss>

