if (site.properties["st:sitePreset"]=="site-dashboard"){
logger.log("It is our dashboard/site type");
var companyhome = search.findNode("path", ['workspace','SpacesStore','app:company_home']);
var templates = companyhome.childByNamePath("Diccionario de datos/Plantillas de espacio/ProjectSite").children;
var docLib = site.childByNamePath("documentLibrary");
if (docLib){
for (var i in templates){
var child = templates[i];
child.copy(docLib, true);
logger.log("### copy "+ child.name);
} // end for i in templates
} else {
logger.log("### Shame, there is no docLib");
} //end if target
} // end if site.properties
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.