Copied to clipboard

Flag this post as spam?

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


  • Tobias Klika 101 posts 570 karma points c-trib
    Feb 01, 2016 @ 23:56
    Tobias Klika
    0

    Tree URLs in Custom Sections not working in 7.4

    Hi!

    I have upgraded my project from Umbraco 7.2.8 to 7.4-beta.2. In my backoffice I have a few custom sections. These sections contain trees for sure and a lot of views.

    Problem is, when clicking on a tree item (or just calling the correct URL) the Umbraco Frontend does not load the correct view anymore.

    In 7.2.8 it was: /App_Plugins/Tools/backoffice/toolsTree/edit.html In 7.4-beta.2 it is: /umbraco/views/toolstree/edit.html

    As you can see this shouldn't be the case ;-)

    I haven't changed anything in the code and it has worked with multiple version before, but not anymore in 7.4.


    Here is the code:

    applications.config

    <add alias="tools" name="Tools" icon="icon-molecular" sortOrder="1" />
    

    trees.config

    <add initialize="true" sortOrder="0" alias="toolsTree" application="tools" title="Tools" iconClosed="icon-folder" iconOpen="icon-folder-open" type="ExampleApp.Applications.ToolsTreeController, ExampleApp" />
    

    ToolsSection.cs

    [Application("tools", "Tools", "icon-box", 3)]
    public class ToolsSection : IApplication {}
    

    ToolsTreeController.cs

    [Umbraco.Web.Trees.Tree("tools", "toolsTree", "Tools")]
    [PluginController("Tools")]
    public class ToolsTreeController : TreeController
    {
      protected override TreeNodeCollection GetTreeNodes(string id, System.Net.Http.Formatting.FormDataCollection queryStrings)
      {
        var tree = new TreeNodeCollection();
    
        if (id == Constants.System.Root.ToInvariantString())
        {
          TreeNode node = CreateTreeNode("cache", id, queryStrings, "Cache", "icon-flash", false);
          node.NodeType = "type";
          tree.Add(node);    
          // ... more nodes   
          return tree;
        }    
        throw new NotSupportedException();
      }
    
    
      protected override MenuItemCollection GetMenuForNode(string id, System.Net.Http.Formatting.FormDataCollection queryStrings)
      {
        return null;
      }
    }
    

    --

    App_Plugins/Tools/ for sure contains package.manifest, the /backoffice/toolsTree/edit.html and so on.
    And the dashboard.html does get loaded without any problems.

    --

    Any ideas what has gone wrong here?

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Feb 02, 2016 @ 09:18
    Jeroen Breuer
    101

    Hello,

    This is a bug and already fixed, but not in Umbraco 7.4-beta2 yet. See this issue: http://issues.umbraco.org/issue/U4-7700

    Jeroen

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Feb 02, 2016 @ 09:19
    Sebastiaan Janssen
    1

    This is a known issue in beta2 and is already fixed for the upcoming final release. See: http://issues.umbraco.org/issue/U4-7700

  • Tobias Klika 101 posts 570 karma points c-trib
    Feb 02, 2016 @ 09:28
    Tobias Klika
    0

    @Jeroen @Sebastiaan

    Oh, thanks so much, couldn't find a matching issue myself. Already thought I am a complete idiot after playing the whole day with this one :)

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Feb 08, 2016 @ 21:42
  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Feb 08, 2016 @ 22:24
    Sebastiaan Janssen
    0

    Not sure, see if you get the same problem with the RC?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Feb 08, 2016 @ 22:40
    Rusty Swayne
    0

    Sure thing, I'll give it a go in a bit. Interesting it is intermittent - meaning it does not happen on every install.

  • 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