V7.1.6 - Custom Section, Blank Tree after Node Load
Has anyone with a custom section upgraded to V7.1.6 yet and are seeing issues with Custom Sections and Trees?
I've tested upgrading my solution from V7.1.4 to V7.1.6 and had some issues which I've worked through (NuGet and Newtonsoft version issues).
I've just rolled it back though as I've found another strange issue with my custom section. Previously I'd see the odd quirk (possibly a race condition as I could never reliably recreate it!?) where the custom tree would not reload after clicking on a node (loading a page in the right hand section) and show a blank tree - the user would have to switch sections to get the tree back.
In V7.1.6 it now does this all the time - if the user selects a node from the custom tree then the right hand pane page is loaded successfully but the tree is blanked out. There are no errors being thrown in the Console and / or the Umbraco Log. I'm guessing the issue is with my code and I'm missing a handler or something?
I'd like to spend more time looking at this but i have to work on the project and get this in a deliverable state first (in V7.1.4 for now) so just wondered if anyone else is seeing issues. I don't want to raise a bug if it's just me!
My custom tree is not like the Person style tree from the excellent example by Tim Geyssens https://github.com/TimGeyssens/UmbracoAngularBackofficePages but rather seperate "tools" rendered as parent nodes (e.g. no children) - so I use custom routes on each node to the relevant angular controller and "page".
e.g. My TreeNodeCollection:
var tree = new TreeNodeCollection
{
// routepath HAS to be /appsection/treealias/htmlview/ID
CreateTreeNode("1", "-1", queryStrings, "View Quotes", "icon-dollar-bag", "/customsection/CustomSectionTree/quotes/-1"),
CreateTreeNode("2", "-1", queryStrings, "View Requests", "icon-handshake", "/customsection/CustomSectionTree/requets/-1") };
The problem was that I'd typed the case incorrectly on my appsection in the route (e.g. /customsection/ was /CustomSection/ this meant when clicking the node the action worked but the tree reloads, failing quietly, with a blank view.
Solution was to change to lowercase and it works robustly. I'm guessing there were some changes to make the angular trees in the bug fix in 7.1.5 /.6 which caused this issue to show itself more realiably (as I just occasionally saw this behaviour in 7.1.4).
Hope this helps someone else one day - basically if your custom tree disappears on clicking check your case and spelling on the routepaths very carefully!
V7.1.6 - Custom Section, Blank Tree after Node Load
Has anyone with a custom section upgraded to V7.1.6 yet and are seeing issues with Custom Sections and Trees?
I've tested upgrading my solution from V7.1.4 to V7.1.6 and had some issues which I've worked through (NuGet and Newtonsoft version issues).
I've just rolled it back though as I've found another strange issue with my custom section. Previously I'd see the odd quirk (possibly a race condition as I could never reliably recreate it!?) where the custom tree would not reload after clicking on a node (loading a page in the right hand section) and show a blank tree - the user would have to switch sections to get the tree back.
In V7.1.6 it now does this all the time - if the user selects a node from the custom tree then the right hand pane page is loaded successfully but the tree is blanked out. There are no errors being thrown in the Console and / or the Umbraco Log. I'm guessing the issue is with my code and I'm missing a handler or something?
I'd like to spend more time looking at this but i have to work on the project and get this in a deliverable state first (in V7.1.4 for now) so just wondered if anyone else is seeing issues. I don't want to raise a bug if it's just me!
I had a look at the issues and the only issue I could see that might have caused a change in this area is:
http://issues.umbraco.org/issue/U4-3575
The sections looks far more robust after this issue but I wonder if I'm seeing a side effect?
OK - problem solved.
My custom tree is not like the Person style tree from the excellent example by Tim Geyssens https://github.com/TimGeyssens/UmbracoAngularBackofficePages but rather seperate "tools" rendered as parent nodes (e.g. no children) - so I use custom routes on each node to the relevant angular controller and "page".
e.g. My TreeNodeCollection:
The problem was that I'd typed the case incorrectly on my appsection in the route (e.g. /customsection/ was /CustomSection/ this meant when clicking the node the action worked but the tree reloads, failing quietly, with a blank view.
Solution was to change to lowercase and it works robustly. I'm guessing there were some changes to make the angular trees in the bug fix in 7.1.5 /.6 which caused this issue to show itself more realiably (as I just occasionally saw this behaviour in 7.1.4).
Hope this helps someone else one day - basically if your custom tree disappears on clicking check your case and spelling on the routepaths very carefully!
is working on a reply...