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???
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');}"; } }
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!
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
I gave Umbraco a heads up about this last week
That got the content tree showing up for sure. Thanks... like Ambien it worked like a dream. MUCHO Thanks!
Thank you :) Had the same problem and the fix worked.
"Umbraco loves you"!
is working on a reply...