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.
[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.
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
trees.config
ToolsSection.cs
ToolsTreeController.cs
--
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?
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
This is a known issue in beta2 and is already fixed for the upcoming final release. See: http://issues.umbraco.org/issue/U4-7700
@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 :)
Hey Sebastiaan - Is this related to my question about 7.3.7?
https://our.umbraco.org/forum/developers/api-questions/74885-changes-in-737-package-installer-process
Not sure, see if you get the same problem with the RC?
Sure thing, I'll give it a go in a bit. Interesting it is intermittent - meaning it does not happen on every install.
is working on a reply...