Documents & Files upload wizard extensions
Hi All!
We are using Documents & Files as a storage for the documents that our users may download/view. We extended the Documents & Files library with a number of custom fields and some of fields are required according to our business logic. This makes standard "Edit Document" (Actions > Edit Properties) screen a more convenient way to create documents than standard "Upload Document" wizard, so we decided to use the "Edit Document" for both upload and edit.
To change the standard behavior we used a ContentViewInsertDialog: removed the UploadDialog on upload in the Libraries > Controls > DocumentsBackend > Views > DocumentsBackendList > Dialogs and created a new one with the following params:
/Sitefinity/Services/Content/DocumentService.svc/parent/b7f29119-851c-4f0e-89a1-1fa4c1f84a1f/0/?itemType=Telerik.Sitefinity.Libraries.Model.Document&parentItemType=Telerik.Sitefinity.Libraries.Model.Library&providerName=OpenAccessDataProvider&managerType=&checkOut=true&createNew=true&unv_tstmp_prm=1387187036271
"Detail":"Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."
Hello Alexander,
What you are trying to do is not a trivial task.
Edit dialog cannot directly operate as an Upload dialog. It is expecting ID of an existing document item in order to operate.
A way to extend upload view would be to create a custom upload dialog. Please take a look at this forum thread for an example of creating custom dialog.
About the additional question: Could you give an example of a document without physical file. If your goal is to manage links to documents (which I assume cannot be downloaded) you could use Module Builder and create a custom module where instead of uploaded file field you could use short text field.
Regards,
Ferdi Nebiev
Telerik
Hello Ferdi,
Thank you for your reply. We decided to go with a custom module as it appears there is no simple way to bypass the file upload. As for your question - we use external storage for several types of downloadable/viewable assets and would like to store them in the Documents library in Sitefinity w/o a physical file - they are similar to uploaded ones in terms of our business logic. Anyway, this is not needed anymore as we go with a custom module solution.
Thank you!