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.
//Alfresco auto-tagger //compliments of Zach Bennett, Eagle Productivity Solutions //two lines of code //free for anyone to use //no license, no strings attached //get tags from parent (folder) node var tagArray = document.parent.getTags(); //add the tags to the document node document.addTags(tagArray);
hisorry to say i followed all the instructions but one point i stopped and couldn't move on..in the step of perform action within auto-tagger when i selected execute script then in the select field i didnt find tagger.jsi don't know where is the mistake …i followed before steps clearly…
model.tags = taggingService.getTags("workspace://SpacesStore"); return (model.tags);
model.tags = taggingService.getTags("workspace://SpacesStore/eb01a162-f7ba-4e0b-a734-d0a7f98d1e9f"); return (model.tags);
01100038 Wrapped Exception (with status template): 01100854 Failed to execute script 'classpath*:alfresco/templates/webscripts/de/fme/jsconsole/execute.post.js': 01100853 No solr query support for store workspace://SpacesStore/eb01a162-f7ba-4e0b-a734-d0a7f98d1e9f
Wow. I'm so frustrated. …
var docuname = document.name; var docuname_lower = docuname.toLowerCase(); var tagArray = []; var taggable_array = ["PATH:\"/cm:categoryRoot/cm:taggable/*\""]; for each(var tag in taggable_array){ var nodes = search.luceneSearch(tag); for each(var node in nodes) { var x = node.name.toLowerCase(); var y = docuname_lower.indexOf(x); if (y >= 0) { tagArray.push(node.name); } } } document.addTags(tagArray); document.save();
var docuname = document.name; var docuname_lower = docuname.toLowerCase(); var catArray = []; var category_array = ["PATH:\"cm:generalclassifiable/cm:DocumentType/*\"","PATH:\"cm:generalclassifiable/cm:Product/*\"","PATH:\"cm:generalclassifiable/cm:Technology/*\""]; for each(var cat in category_array){ var nodes = search.luceneSearch(cat); for each(var node in nodes) { var x = node.name.toLowerCase(); var y = docuname_lower.indexOf(x); if (y >= 0) { catArray.push(node); } } } document.addAspect("cm:generalclassifiable"); document.properties["cm:categories"] = catArray; document.save();