AnsweredAssumed Answered

Hint of the day : Apply a template to ALL users on a space

Question asked by zomurn on May 7, 2009
Latest reply on Apr 5, 2013 by rafaelscg

Just a simple javascript to apply a template for all user :

function applyTemplates()
   var usersHome = companyhome.childByNamePath(USERS_ROOT_FOLDER);
   query = "PATH:\"app:company_home/app:dictionary/app:content_templates/cm:" + TEMPLATE_BANNETTES + "\"";
   var templateRef = search.luceneSearch(query);["cm:template"]=templateRef[0];

We just need to allow READ access to the template.

PS : from the problem quoted here :