I want to allow multiple file attachments (selected from / uploaded to media library) to add to my news article document type. So I would like to add a property to my news document type to hold the file attachments.
I've seen that there are several projects (data types), but I haven't found exactly what I need. Some projects allow to choose multiple files from media library, but they don't allow to upload files directly. So the user must use the media section to upload the attachments. So I would need Media Picker behaviour (select existing or add new) with the ability to assign multiple (unlimited) files to a document.
What version of umbraco are you using? You may be able to do it with http://our.umbraco.org/projects/backoffice-extensions/repeatable-custom-content that will allow multiples of any number of datatypes so you could create new one with file upload and set max number allowed i have used the data type myself but not with file upload.
Why dont you create another Document Type called: "Media File" or something and then add multiple amounts (but not constrained by any number) to the original Document Type.
So you have:
(Document Types)
News Articles ---> News Article ---> Media File
All you have to do then is XSLT through the media files added to that specific news article at runtime to display them.
Shaun: Thanks for your suggestion. And yes, I already thought about that, but I see a potential drawback:
Restricted to the news area its pretty clean, but what If I also need media file attachments on normal Text pages, in future (or even on any other document type)? I would allow to create sub documents of type Media file for text pages, which may result in a chaotic document tree.
- News -- Article 1 --- File a --- File b -- Article 2
- Products (text page)
-- File c (media file for products)
-- Food (text page/sub page of products)
--- Sweets (text page/sub page for food)
--- File d (media file of food)
...
-- Clothes (text page/sub page of products)
--- File e (media file of clothes)
--- Sub pages for clothes etc.
As you can see, documents of completely different types exist mixed up on the same level, which could become very confusing I think. Okay, you can add an additional layer (document type) in between (e.g. Media Files), but then you have to create these needless documents on each sub page (where attachments are needed), maybe to look about sorting etc. to keep it as clean as possible.. Do you know what I mean? Would that really be best practice for solving that problem in Umbraco?
In my opinion it would be cleaner to have a Media tab consistent on all document types where attachments should be possible, where I can upload/choose any number of files to/from media library... I don't really want/need them to be in the document tree..What do you think?
I wouldn't know about it being the best route for Umbraco(I've barely had it installed a week), But I propose this to you - if you wish to have intermingled text and media content on a page, does the same problem not exist on your current route?
Your current course, you need to identify the list of media related to the post(moderately easier) - then decide where it goes on the page somewhere and place it there(I would suspect more difficult/ especially when considering a changing environment)
Following this method, an XSLT gets all child content(in the order displayed in the list) and prints it.
if you wanted a video associated with a news article you would write a macro to get video X from article Y.
I would go for a media picker with folder creation functionality like Tribal Yet Another Media Picker 4 (not compatible). Then create folder for the current page, upload files and reference the folder with the picker. The built in media picker unfortunately lacks the functionality to create folders and I havenĀ“t found any other compatible with 4.5.2
I actually use Digibiz Advanced Media Picker. It works on 4.6.1 without problems, allows to add multiple items (including drag & drop sorting), and allows to directly upload any media type. Fits all my needs perfectly!
News articles - file attachments
Hello,
I want to allow multiple file attachments (selected from / uploaded to media library) to add to my news article document type. So I would like to add a property to my news document type to hold the file attachments.
I've seen that there are several projects (data types), but I haven't found exactly what I need. Some projects allow to choose multiple files from media library, but they don't allow to upload files directly. So the user must use the media section to upload the attachments. So I would need Media Picker behaviour (select existing or add new) with the ability to assign multiple (unlimited) files to a document.
Any suggestions?
Andreas
Andreas,
What version of umbraco are you using? You may be able to do it with http://our.umbraco.org/projects/backoffice-extensions/repeatable-custom-content that will allow multiples of any number of datatypes so you could create new one with file upload and set max number allowed i have used the data type myself but not with file upload.
Regards
Ismail
Hello Ismail,
I am using 4.5.2, and I would like to use it with Media Picker.. What do you think?
Regards,
Andreas
wont know till you try it in theory it should work, you will need latest version trawl the forum there is a 452 compatible version!
Regards
Ismail
@Ismail: Where can I find the latest version compatible with 452?
u on skype or msn ill send u version i have that works with 452 cant remember where i got it tho
Regards
Ismail
Why dont you create another Document Type called: "Media File" or something and then add multiple amounts (but not constrained by any number) to the original Document Type.
So you have:
(Document Types)
News Articles ---> News Article ---> Media File
All you have to do then is XSLT through the media files added to that specific news article at runtime to display them.
Shaun: Thanks for your suggestion. And yes, I already thought about that, but I see a potential drawback:
Restricted to the news area its pretty clean, but what If I also need media file attachments on normal Text pages, in future (or even on any other document type)? I would allow to create sub documents of type Media file for text pages, which may result in a chaotic document tree.
- News
-- Article 1
--- File a
--- File b
-- Article 2
Do you know what I mean? Would that really be best practice for solving that problem in Umbraco?
In my opinion it would be cleaner to have a Media tab consistent on all document types where attachments should be possible, where I can upload/choose any number of files to/from media library... I don't really want/need them to be in the document tree..What do you think?
Andreas
Hmmm, I see your point.
I wouldn't know about it being the best route for Umbraco(I've barely had it installed a week), But I propose this to you - if you wish to have intermingled text and media content on a page, does the same problem not exist on your current route?
Your current course, you need to identify the list of media related to the post(moderately easier) - then decide where it goes on the page somewhere and place it there(I would suspect more difficult/ especially when considering a changing environment)
Following this method, an XSLT gets all child content(in the order displayed in the list) and prints it.
if you wanted a video associated with a news article you would write a macro to get video X from article Y.
Am I on the right track?
I would go for a media picker with folder creation functionality like Tribal Yet Another Media Picker 4 (not compatible). Then create folder for the current page, upload files and reference the folder with the picker. The built in media picker unfortunately lacks the functionality to create folders and I havenĀ“t found any other compatible with 4.5.2
I actually use Digibiz Advanced Media Picker. It works on 4.6.1 without problems, allows to add multiple items (including drag & drop sorting), and allows to directly upload any media type. Fits all my needs perfectly!
Best Regards
Andreas
is working on a reply...