Copied to clipboard

Flag this post as spam?

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


  • Kevon K. Hayes 255 posts 281 karma points
    Nov 27, 2010 @ 03:55
    Kevon K. Hayes
    0

    Content Tree Will Not render after creating new Context Menu Item

    I used the exact same code that Per used in the following video: (http://umbraco.org/help-and-support/video-tutorials/developing-with-umbraco/events/add-items-to-the-context-menu).  Not exactly sure whats going on nothing in the logs, no errors???

     

    Please help!

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Nov 27, 2010 @ 05:06
    Tom Fulton
    2

    Hi Kevon,

    I ran into this last week, there is a problem in the code with that video causing a javascript error.  The JsFunctionName currently can't have any single quotes as they get converted to \u0027 and cause the javascript error.

    To fix, move the code from JsFunctionName into its own function in JsSource, and call that function from JsFunctionName

    public string JsFunctionName 
    {
    get
    {
    return "DoSomething();"; }
    }

    public string JsSource
    {
    get {
    return "function DoSomething(){alert('hi');}";
    }
    }

    I gave Umbraco a heads up about this last week

  • Kevon K. Hayes 255 posts 281 karma points
    Nov 27, 2010 @ 05:10
    Kevon K. Hayes
    0

    That got the content tree showing up for sure.  Thanks... like Ambien it worked like a dream.  MUCHO Thanks!

  • rjohannesson 2 posts 22 karma points
    Aug 11, 2011 @ 20:00
    rjohannesson
    0

    Thank you :) Had the same problem and the fix worked.

     

    "Umbraco loves you"!

     

Please Sign in or register to post replies

Write your reply to:

Draft