Hi, i'm on Communty 6.2 for my office installation and i have set-up a main folder "Customers" in which there are N folders, one for each of these. I'm trying to make something like a "customer file" orgarnizzation.
Each customer folder is auto-changed to a custom model (Customer File) for refine the rules applied.
Currently i want to automatically add a tag on these special folders exactly the same as the folder name, and auto apply these tag to any document created/uploaded in the customer folder.
Customer (main folder) | |_customer A folder (custom model) with tag "customer a" |_file.docx (with tag "customer a") |_file.jpg (with tag "customer a") |_.......
Someone can help me in this script? I'm totally new to alfresco... thanks since now!
i was to build two rules, one (your script) which auto generate a tag from the customer folder name (i applyed the rule just for the rist level, ignoring sub folder inside each customer.
After i applyed another rules, on each file which is NOT a folder (so i exclude to tag subfolder) with this script where it apply the tag based on the 5th folder name in the path (which is actually the customer name!):