03-20-2012 08:56 AM
loadPosts: function SiteBlog_loadPosts(sites)
{
for(var i = 0; i<sites.length; i++){
Alfresco.util.Ajax.request(
{
url: Alfresco.constants.PROXY_URI + "api/blog/site/" + sites[i] + "/blog/posts?pageSize=25",
successCallback:
{
fn: this.onPostsLoaded_Collector,
scope: this
},
failureCallback:
{
fn: this.onPostsLoadFailed,
scope: this
},
scope: this,
noReloadOnAuthFailure: true
});
}
},"sites" is an array of site names, the loop is the first step to collect posts from all the sites in "sites". I got the overall code working with a few detours, 03-21-2012 04:59 AM
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.