Copied to clipboard

Flag this post as spam?

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

  • Shaun 248 posts 475 karma points
    Apr 16, 2014 @ 16:35

    UK Fest Angular JS Demo problems.

    Hi All

    I've created a new umbraco 7.1 install and applied the angular JS demo to try to understand how custom sections work. However I can't get it to run.

    I've seen there's a tweak to the manifest, which now reads

        propertyEditors: [      
                alias: "People.PersonPicker",
                name: "Person Picker",      
                editor: {
                    view: "~/App_Plugins/People/propertyEditors/PersonPicker.html",
                    valueType: "INT",
                    hideLabel: false
        javascript: [

    and cleared my cache, but I'm getting the following error

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

    Compiler Error Message: CS1502: The best overloaded method match for 'Umbraco.Web.Trees.TreeControllerBase.CreateTreeNode(string, string, System.Net.Http.Formatting.FormDataCollection, string, string)' has some invalid arguments

    Source Error:

    Line 32:             foreach (var person in ctrl.GetAll())
    Line 33:             {
    Line 34:                 var node = CreateTreeNode(person.Id.ToString(), queryStrings, person.Name, "icon-user", false);
    Line 35: 
    Line 36:                 if (person.IsDrunk)

    Source File: d:\Shaun\Work\repos\TestUmbraco\TestUmbraco\App_Code\PeopleTreeController.cs    Line: 34 

    Any ideas?

  • Shaun 248 posts 475 karma points
    Apr 16, 2014 @ 16:44

    Solved thanks to this thread

    the node should be defined thusly

    var node = CreateTreeNode(person.Id.ToString(), id, queryStrings, person.Name, "icon-user", false);

Please Sign in or register to post replies

Write your reply to: