Copied to clipboard

Flag this post as spam?

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


  • Arne 10 posts 30 karma points
    May 15, 2012 @ 13:06
    Arne
    0

    Using content picker in usercontrol

    How can I get the selected node id whn using content picker in usercontrol?
    My code:

    umbraco.controls.ContentPicker mp = new umbraco.controls.ContentPicker();
                mp.AppAlias = "media";
                mp.TreeAlias = "media";

    //PlaceholderID:mediaPicker
     mediaPicker.Controls.Add(mp);
  • Tom Fulton 2030 posts 4996 karma points c-trib
    May 15, 2012 @ 14:49
    Tom Fulton
    0

    Hi,

    Check out this thread which may have the answer for you.

    Here is also a code sample from Jeroen Breuer with another way to do it using the datatype instead of the control:  http://our.umbraco.org/forum/developers/extending-umbraco/13518-implement-improved-mediapicker-c#comment49762

    HTH,
    Tom 

  • Arne 10 posts 30 karma points
    May 16, 2012 @ 07:52
    Arne
    0

    Thanks for the reply

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies