Copied to clipboard

Flag this post as spam?

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


  • Jeavon Leopold 3074 posts 13632 karma points MVP 12x admin c-trib
    Jul 12, 2013 @ 13:55
    Jeavon Leopold
    0

    BasePage in v6

    Hi All,

    I'm try to remove some obsolete methods but I am having a issue replacing umbraco.BasePages.BasePage.Current.ClientTools.SyncTree, it is suggested that I use Umbraco.Web.UmbracoContext.Current instead but I cannot see how I can then get at the ClientTools.

    Any ideas?

    Thanks!

    Jeavon

  • Jeroen Breuer 4909 posts 12266 karma points MVP 6x admin c-trib
    Jul 12, 2013 @ 17:16
    Jeroen Breuer
    0

    Hi,

    I've only used the umbraco.BasePages.BasePage.Current.ClientTools so I don't know how the new one works, but perhaps having a look at the source code might help? The new methods are probably used somewhere already.

    Jeroen

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 12, 2013 @ 17:20
    Stefan Kip
    3

    AFAIK the only other options is:

    Umbraco.Web.UI.Pages.ClientTools c = new Umbraco.Web.UI.Pages.ClientTools((Page)HttpContext.Current.CurrentHandler);
    
  • Jeavon Leopold 3074 posts 13632 karma points MVP 12x admin c-trib
    Jul 12, 2013 @ 18:16
    Jeavon Leopold
    0

    Hey Stefan,

    Thanks, that works perfectly! I do wonder if there should be a easier way though, seems like it should be on the UmbracoContext somewhere.....?

    Cheers,

    Jeavon

  • 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