<?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: Space templates - need a copy not a reference in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62203#M38756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will see if i can reproduce this issue - and raise a bug for it as required.&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>Thu, 22 Mar 2007 12:06:11 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-03-22T12:06:11Z</dc:date>
    <item>
      <title>Space templates - need a copy not a reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62200#M38753</link>
      <description>I am using JavaScript to dynamically include space templates, but am getting a reference to the space template and not a copy. In other words when I add content into the copied space, the item also appears in the template space.templateProject is a Space Template in the Data DictionarydestinationSpa</description>
      <pubDate>Thu, 15 Mar 2007 22:37:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62200#M38753</guid>
      <dc:creator>rhowlett</dc:creator>
      <dc:date>2007-03-15T22:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Space templates - need a copy not a reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62201#M38754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you saying that the 'newProjectSpace' variable references the original templates spaces not the newly created space?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:37:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62201#M38754</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-03-21T14:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Space templates - need a copy not a reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62202#M38755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes. However I noticed this happens when I copy a space template into a&amp;nbsp; space that itself was created as a copy of a space template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Dictionary&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…Space Templates&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;……Vehicle Space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;………Automobile Space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…………Ford (problem: it appears here though created in a copied space)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Company Home&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…Vehicle Space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;……Automobile Space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…………Ford (content item)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:56:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62202#M38755</guid>
      <dc:creator>rhowlett</dc:creator>
      <dc:date>2007-03-21T14:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Space templates - need a copy not a reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62203#M38756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will see if i can reproduce this issue - and raise a bug for it as required.&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>Thu, 22 Mar 2007 12:06:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62203#M38756</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-03-22T12:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Space templates - need a copy not a reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62204#M38757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok thanks. BTW the configuration looks more like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Dictionary&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…Space Templates&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;……Vehicle Space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;……Truck Space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;……Automobile Space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;……..Ford (problem: it appears here though created in a copied space)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Company Home&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…Vehicle Space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;……Automobile Space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…………Ford (content item)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Vehicle space gets copied, then depending on circumstances a Truck or Automobile space is created beneath the Vehicle space. If content items are created in Company Home/Vehicle Space, they do not appear in the Data Dictionary. The 'copy by reference' problem appears with the reused Automobile (or Truck) spaces.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 13:26:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62204#M38757</guid>
      <dc:creator>rhowlett</dc:creator>
      <dc:date>2007-03-22T13:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Space templates - need a copy not a reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62205#M38758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post a few more details? I'm still not quite sure of the exact sequence of steps and the exact folder structure. You could post the script/rules that you are using?&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>Thu, 22 Mar 2007 13:47:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62205#M38758</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-03-22T13:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Space templates - need a copy not a reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62206#M38759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a script I am using to setup a client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//============================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Name: setupCompany.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Description: Sets up a client space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//============================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Get a reference to the space where clients reside&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var spaceName = "Extranet/Clients";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var clientsSpaces = companyhome.childByNamePath(spaceName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Get a reference to the company space template&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var templateName = "Data Dictionary/Space Templates/Company";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var templateCompany = companyhome.childByNamePath(templateName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Copy the company template into the clients space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var newClientSpace = templateCompany.copy(clientsSpaces);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Rename the current item&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.properties.name = "Company Profile";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Name the client space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newClientSpace.properties.name = document.properties.title;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newClientSpace.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//More the current item into the new space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.move(newClientSpace);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 14:50:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/space-templates-need-a-copy-not-a-reference/m-p/62206#M38759</guid>
      <dc:creator>rhowlett</dc:creator>
      <dc:date>2007-03-22T14:50:14Z</dc:date>
    </item>
  </channel>
</rss>

