Copied to clipboard

Flag this post as spam?

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


  • Berto 105 posts 177 karma points
    Nov 25, 2014 @ 17:45
    Berto
    0

    Media Picker in WebForms (Custom Backoffice)

    Hi,

    Does anyone knows how (or if it is possible) to add the media picker control of umbraco 7 to a webform?

    I have a backoffice made with webforms and I'm already using the simplemediapicker, but this control doesn't show the thumbnails of media content.

    Thx

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Nov 28, 2014 @ 14:10
    Dave Woestenborghs
    0

    Hi Berto,

    What do you mean with a custom backoffice. Do you mean a seperate application or do you mean a extra section in the umbraco backoffice.

    Dave

  • Berto 105 posts 177 karma points
    Nov 28, 2014 @ 14:36
    Berto
    0

    Hi Dave,

    Its a extra section on umbraco, in this case, a webform loaded into a iframe.

    Berto

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Nov 28, 2014 @ 15:03
    Dave Woestenborghs
    0

    A in that case it is not possible. The new picker is angular based. 

    May I ask why you are building your section in webforms instead of angular. Angular is the recommended approach in V7.

    You can have a look at my code from my DUUG and UmbUkFest talks about building custom sections in angular :

    https://bitbucket.org/dawoe/duugcustomsections
    https://bitbucket.org/dawoe/umbukfestival2014

    Tim has also some good blog posts to get you started : http://www.nibble.be

    dave 

     

  • Berto 105 posts 177 karma points
    Nov 28, 2014 @ 15:06
    Berto
    0

    It was already done in webforms, and for this project there is no time to rebuild all in angular

    Thx for the help ;)

    Berto

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Nov 28, 2014 @ 15:16
    Dave Woestenborghs
    0

    So for next projects consider using angular.

    You can always get the thumnail your self using the mediaservice for the selected media item as a workaround

    Dave

  • Berto 105 posts 177 karma points
    Nov 28, 2014 @ 15:24
    Berto
    0

    From ApplicationContext.Services?

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Nov 28, 2014 @ 15:36
    Dave Woestenborghs
    0

    yep..you can then retreive the media item by id and get the file path from that

  • Hans 1 post 22 karma points
    Nov 30, 2014 @ 11:23
    Hans
    0

    yes

Please Sign in or register to post replies

Write your reply to:

Draft