I am trying to programmatically upload a large amount of PDFs to a new EPiServer project, as well as allow for future PDFs to be added manually. We need to be able to give them a set of heirarchical categories, with each document having 2-3 levels of tags for 3-4 different category types.
I looked at the UnifiedFile.Summary property and the FileSummary.config file and I have at least two issues.
1. Firstly, I didn't see a quick way to dynamically populate the file summary edit interface. Either from custom tables or even from the category listing in episerver. Is this possible? I could enter all the categories myself, but it would be a pain to keep it in sync with the category list stored elsewhere.
2. What would be the best way to go about allowing multiple category selections for different category types? Would I extend the FileSummary class and do some custom format to make category stored with my own delimers or something? All this data is stored in existing tables also, so if possible it might be better to save category data back to those tables as well.
As a random example, A PDF might be a report about products, so maybe it'd have a type of "mechanical parts -> sub part -> productA" and chemical classification "liquid -> acid -> chemicalA" as well as several other similar labels that we need to associate with each document.
Hello,
I am trying to programmatically upload a large amount of PDFs to a new EPiServer project, as well as allow for future PDFs to be added manually. We need to be able to give them a set of heirarchical categories, with each document having 2-3 levels of tags for 3-4 different category types.
I looked at the UnifiedFile.Summary property and the FileSummary.config file and I have at least two issues.
1. Firstly, I didn't see a quick way to dynamically populate the file summary edit interface. Either from custom tables or even from the category listing in episerver. Is this possible? I could enter all the categories myself, but it would be a pain to keep it in sync with the category list stored elsewhere.
2. What would be the best way to go about allowing multiple category selections for different category types? Would I extend the FileSummary class and do some custom format to make category stored with my own delimers or something? All this data is stored in existing tables also, so if possible it might be better to save category data back to those tables as well.
As a random example, A PDF might be a report about products, so maybe it'd have a type of "mechanical parts -> sub part -> productA" and chemical classification "liquid -> acid -> chemicalA" as well as several other similar labels that we need to associate with each document.
Thanks for your feedback,