Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andreas Pfanner 196 posts 314 karma points
    Jan 11, 2011 @ 10:49
    Andreas Pfanner
    0

    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

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jan 11, 2011 @ 15:51
    Ismail Mayat
    0

    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

  • Andreas Pfanner 196 posts 314 karma points
    Jan 11, 2011 @ 16:07
    Andreas Pfanner
    0

    Hello Ismail,

    I am using 4.5.2, and I would like to use it with Media Picker.. What do you think?

    Regards,
    Andreas

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jan 11, 2011 @ 16:11
    Ismail Mayat
    0

    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

  • Andreas Pfanner 196 posts 314 karma points
    Jan 13, 2011 @ 10:30
    Andreas Pfanner
    0

    @Ismail: Where can I find the latest version compatible with 452?

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jan 13, 2011 @ 10:32
    Ismail Mayat
    0

    u on skype or msn ill send u version i have that works with 452 cant remember where i got it tho

    Regards


    Ismail

  • Shaun Smith 35 posts 61 karma points
    Jan 13, 2011 @ 22:18
    Shaun Smith
    0

    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.

     

  • Andreas Pfanner 196 posts 314 karma points
    Jan 13, 2011 @ 22:42
    Andreas Pfanner
    0

    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?
    Kind Regards,
    Andreas

     

  • Shaun Smith 35 posts 61 karma points
    Jan 13, 2011 @ 23:08
    Shaun Smith
    0

    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?

  • Christer Josefsson 55 posts 93 karma points
    Feb 07, 2011 @ 23:16
    Christer Josefsson
    0

    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

  • Andreas Pfanner 196 posts 314 karma points
    Feb 08, 2011 @ 07:30
    Andreas Pfanner
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft