javascript - Alfresco: Add a tag based on the location of the document -
i've been struggling little script should easy implement: i've added rule on folder runs script. script should folderlocation of uploaded or incoming document , add location tag:
var url = document.properties.locale.noderef; document.addtag(url);
it should this, doesn't work. how should it?
your code should follow.first try code replace logic add path.
if (!document.hasaspect("cm:taggable")) document.addaspect("cm:taggable"); document.addtag("test");
you can replace "test" accessed path of document.
Comments
Post a Comment