05-07-2009 06:03 AM
function applyTemplates()
{
var usersHome = companyhome.childByNamePath(USERS_ROOT_FOLDER);
usersHome.addAspect("cm:templatable");
query = "PATH:\"app:company_home/app:dictionary/app:content_templates/cm:" + TEMPLATE_BANNETTES + "\"";
var templateRef = search.luceneSearch(query);
usersHome.properties["cm:template"]=templateRef[0];
templateRef[0].setPermission("Consumer");
templateRef[0].save();
usersHome.save();
}
04-05-2013 05:36 PM
var template = companyhome.childByNamePath("Data Dictionary/Presentation Templates/viewer.ftl");
document.properties["cm:template"]=template;
document.save();
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.