02-18-2010 07:21 AM
03-02-2010 04:13 AM
function getSiteTitle(siteid)
{
// Call the correct repo script depending on the mode
var connector, result =
{
status: 0
};
if (format.name == "html")
{
connector = remote.connect("alfresco");
}
else
{
// Use alfresco-feed connector as a basic HTTP auth challenge will be issued
connector = remote.connect("alfresco-feed");
}
// Call the repo for sites the user is a member of
var ressite = connector.get("/api/sites/" + stringUtils.urlEncode(siteid));
if (ressite.status == 200)
{
// Create javascript objects from the server response
var mySite = eval('(' + ressite + ')');
siteTitle = mySite.title;
}
else
{
siteTitle = "";
}
return siteTitle;
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.