Hi all,
I am trying to enforce a naming convention unique to each folder in each of my five sites. There are around 12 folders total, each having their own convention to adhere to. So far I've accomplished this by creating a JS web script with unique RegEx check for each folder. However, I predict this will become a problem when I have to change/update each and every script; a time consuming process.
I also let the user know if their file doesn't adhere to naming convention by providing helpful messages in the file's "title". But it has become cumbersome to account for each and every possibility of how a file doesn't adhere to the convention.
Does anyone know of any resources that could accomplish this better?
There are 2 ways to achive this.
1)Rule :
You can create custom rule on top level folder of each site(documentLibrary) with your custom login for renaming file.This is javascript base so you need not to restart server.
https://docs.alfresco.com/6.1/tasks/library-folder-rules-define-create.html
2)Policy : This is java base login so Here you can write your logic where any node creation happen,you can check document/folder and apply your custom logic. Here you need to deploy your custom logic so you need to restart server.
https://docs.alfresco.com/5.1/references/dev-extension-points-behaviors.html
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.