Copied to clipboard

Flag this post as spam?

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


  • Hendrik Jan 71 posts 137 karma points
    Oct 10, 2010 @ 17:47
    Hendrik Jan
    0

    How to use improved media picker in c# for datatype

    Hey Guys,

    I'm trying to add the improved media picker on my custom datatype like this:

    umbraco.editorControls.mediaChooser media =

    new umbraco.editorControls.mediaChooser(

    new umbraco.editorControls.mediapicker.MemberPickerDataType().Data

    );

    But it doesn't show the preview, do i use the wrong control or do i need to change some settings?

  • Hendrik Jan 71 posts 137 karma points
    Oct 10, 2010 @ 17:50
    Hendrik Jan
    0

    Hey Guys,

    I'm trying to add the improved media picker on my custom datatype like this:

    umbraco.editorControls.mediaChooser media =

    new umbraco.editorControls.mediaChooser(

    new umbraco.editorControls.mediapicker.MemberPickerDataType().Data

    );

    the controll works fine. But it doesn't show the preview, do i use the wrong control or do i need to change some settings?

     

    i use 4.5.2

  • Hendrik Jan 71 posts 137 karma points
    Oct 16, 2010 @ 17:37
    Hendrik Jan
    0

    any1?

  • mfeola 117 posts 221 karma points
    Oct 29, 2010 @ 17:18
    mfeola
    1

    can you get your media picker to save information? mine doesn't seem to save either content or media picker information anymore in this new version.

    Edit: Nevermind, i am able to save, and it seems like you are supposed to just put two true/false's after you include your data element in the initialization but when i try that i get an error message and the umbracolog table only says the id of the page that gave the error with no relevant information. maybe you should try on your file and see if that works? just do mediachooser(dataextractor, true,true); 

  • Hendrik Jan 71 posts 137 karma points
    Oct 29, 2010 @ 23:48
    Hendrik Jan
    0

    Thanks for you answer. But I already resolved my problem. The thing was I referenced to old binary's.

Please Sign in or register to post replies

Write your reply to:

Draft