Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 29, 2010 @ 12:59
    Jeroen Breuer
    2

    Reload tree after uploading

    Hi,

    I have an idea to make this package even greater. Currently after media items are uploaded the media tree doesn't get refreshed. This can be done easy by adding the following code after the uploading is completed:

    BasePage.Current.ClientTools
       .SyncTree(Path, true)
       .ShowSpeechBubble(BasePage.speechBubbleIcon.save, "Saved", "The media items have been uploaded");

    This will sync the tree (you need to get the path of current node) and show a popup the files have been uploaded.

    Jeroen

  • Emanuel 63 posts 283 karma points
    Sep 29, 2010 @ 15:23
    Emanuel
    0

    This is actually something I tried to do, but was completely unaware of the power of the ClientTools class...
    Hopefully I'll update the project in the next couple of days, you'll get due credit :)

    Thanks again, Jeroen!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 29, 2010 @ 17:07
    Jeroen Breuer
    0

    I didn't know about it either until I started looking at the umbraco 4.5 source code :). Glad I could help a little with this awesome package!

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Oct 18, 2010 @ 14:42
    Jeroen Breuer
    0

    Hi Emanuel,

    Any idea when you've got time to add this feature?

    Jeroen

  • Emanuel 63 posts 283 karma points
    Oct 18, 2010 @ 14:45
    Emanuel
    0

    Hi Jeroen,

    I might have some time tomorrow morning, but no promises...

    Emanuel

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Dec 09, 2010 @ 10:27
    Jeroen Breuer
    0

    Hi Emanueal,

    If you make me a Contributor for this project I'd be happy to build in this functionality.

    Jeroen

  • Hundebol 167 posts 314 karma points
    Dec 09, 2010 @ 13:22
    Hundebol
    0

    Hi Jeroen & Emanuel,

    Hope you decide to cooperate on this feature - it's very needed! :)

    Best regards,
    Hundebol

  • Connie DeCinko 931 posts 1160 karma points
    Jan 28, 2011 @ 21:59
    Connie DeCinko
    0

    I'm getting an error about Current not being part of BasePage.

    Edit:  Never mind. My project was targeting the wrong version of the framework.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 28, 2011 @ 22:23
    Jan Skovgaard
    0

    Hi Connie

    Can you be a bit more specific on what the error says?

    /Jan

  • jonok 297 posts 658 karma points
    Jul 23, 2011 @ 03:02
    jonok
    0

    I'm trying to call this code in the Media.AfterSave event handler, but I'm getting "object reference not set to an instance of an object" when trying to use umbraco.BasePages.BasePage.Current - is there another way to access 'current' in a media event?

  • Emanuel 63 posts 283 karma points
    Jul 23, 2011 @ 21:18
    Emanuel
    0

    BasePage.Current won't work because the code is running under a .ASHX totally outside the Umbraco engine.

Please Sign in or register to post replies

Write your reply to:

Draft