As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
function main() { // Get the filter parameters var nameFilter = args["nf"]; var sitePreset = args["spf"]; var sizeString = args["size"]; var mysites = []; // Get the list of sites var sites = siteService.listSites(nameFilter, sitePreset, sizeString != null ? parseInt(sizeString) : 0); if(sitePreset && sitePreset != ''){ for(i=0; i<sites.length; i++) { if(sites[i].sitePreset == sitePreset){ mysites.push(sites[i]); } } model.sites = mysites; } else{ model.sites = sites; } } main();
siteService.listSites("", "project-site-dashboard");
var connector = remote.connect("alfresco"); var result = connector.get("/api/sites?spf=project-site-dashboard");