AnsweredAssumed Answered

Alfresco: Add a tag based on the location of the document

Question asked by robinho on Mar 24, 2014
Latest reply on Mar 24, 2014 by kaynezhang


I've been struggling with a little script that should be easy to implement: I've added a rule on a folder that runs a script. The script should get the folderlocation of the uploaded or incoming document and add the location as a tag:

var url = document.properties.locale.nodeRef;
document.addTag(url);

It should be something like this, but this doesn't work. how should I do it?
Is it possible to get the folder-structure of the file as a tag?

thanks

Outcomes