11-14-2016 11:00 AM
Hello,
I have an structure of folders and I need to upload files with diferent metadata in each one: For example, I have the next structure:
Main
-Human Resources (Custom properties for files: Name, Age, Language, etc.)
-TIC´s (Custom properties for files: Model, Year, Suppliers, etc.)
-Sales (Custom properties for files: Country, State, etc.)
I have created an specific model for files of every folder (I have three models).Now, when I add a file on any folder I need to change the Type in order to see the corresponding properties and fill them.
There is some way to set a default model to an specific folder and, by inheritance, set by default this model to all the new files that I´m adding?
Thanks in advance,
Regards.
11-14-2016 11:25 AM
Hi,
Maybe you can use rules.
Define a rules on the parent folder to "Specialise type"
You can also write a small JS file that will be called by the rule that do the same thing.
Yann
11-14-2016 11:44 AM
Hi:
A very nice addon may be used for a similar proposal too (defining custom upload folders):
GitHub - softwareloop/uploader-plus: An Alfresco uploader that prompts for metadata
Regards.
--C.
11-14-2016 11:56 AM
Thanks C,
I will try this plugin.
This plugin add metadata to files depending the folder where is located?
Regards
11-14-2016 12:04 PM
Yes, you may define custom "upload folders" for using defined custom types from Alfresco Share Admin Console.
11-14-2016 12:08 PM
Thanks for your response Cesar.
Regards!
11-15-2016 05:40 AM
Hi,
You can create a rule on a folder to change a type of a documents when they are created or added to a folder.
In order to create such rule the most simple way is to create JavaScript file (.js) that contains a following code
var myAction = actions.create("specialise-type");
myAction.parameters["type-name"] = "{<url of your namespace>}<prefix>";
myAction.execute(document);
Place this this .js file at "Company Home/Data Dictionary/Scripts" folder in your repository. Ensure the mimetype is JavaScript. Create a rule on required folders. While defining a rule , select when "items are created or entered in this folder" and in perform action select "Execute script". Select the JS file you created.
Thanks,
Kalpesh
11-21-2016 06:35 PM
Kalpesh Patel You can use this even shorter version:
document.specializeType("type-name");
11-22-2016 12:13 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.