cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved]Duplicate an existing share site

leyer
Champ in-the-making
Champ in-the-making
Hello,

I have a problem with alfresco share…
I try to duplicate or copy an existing alfresco share site with the alfresco interface.
I create groups for this copy, i see the site in my share dashboard but, i can't accessed to the site help me plz.
2 REPLIES 2

zaizi
Champ in-the-making
Champ in-the-making
Create a webscript in Share with the following snippet and call it with your site name to initial Surf with your site details.


script: {
   var siteName = args.sitename;

   if (siteName === undefined || siteName.length === 0) {
      status.setCode(500, "Site name not set");
      break script;
   }

   var tokens = new Array();
   tokens["siteid"] = siteName;
   sitedata.newPreset("site-dashboard", tokens);

   model.success = true;
}

leyer
Champ in-the-making
Champ in-the-making
It's Works !!!!! Thank you for your help  Smiley Very Happy