Copied to clipboard

Flag this post as spam?

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


  • psiho 101 posts 96 karma points
    Oct 15, 2010 @ 12:06
    psiho
    0

    custom media types

    I created some custom media types that extend normal photo/folder types. I added "Album" with some Title, thumbnail, date, etc... and also "AlbumPhoto" with title, description, date, etc.

    Problem is that I don't know how to make DesktopMediaUploader create Albums/AlbumPhotos instead of Folders/Photos. Is there a way?

  • Andreas Gehrke 20 posts 44 karma points
    Oct 15, 2010 @ 13:26
    Andreas Gehrke
    0

    Hello.

    You can configure this in the desktopMediaUploader.config file. Here's an example:

      <mediaFacory assembly="TheOutfield.UmbExt.DesktopMediaUploader" namespace="TheOutfield.UmbExt.DesktopMediaUploader" type="UmbracoImageMediaFactory">
    <extensions>
    <ext>jpeg</ext>
    <ext>jpg</ext>
    <ext>gif</ext>
    <ext>bmp</ext>
    <ext>png</ext>
    <ext>tiff</ext>
    <ext>tif</ext>
    </extensions>
    </mediaFacory>

    The above configuration will use the UmbracoImageMediaFactory class to create the media item. You can implement your own MediaFactory but implementing the IMediaFactory interface or inheriting from the abstract MediaFactory class. You need to reference the TheOutfield.UmbExt.DesktopMediaUploader assembly to load the mentioned types.

    /Andreas

     

  • psiho 101 posts 96 karma points
    Oct 15, 2010 @ 15:33
    psiho
    0

    I was hoping there was a non-programming answer to this :)

    Since I don't have a clue about .net, it seems easier for me to change folder/image media types with new fields and delete newly created Album/AlbumPhoto types.

Please Sign in or register to post replies

Write your reply to:

Draft