I've extended my umbraco backoffice with a custom section, but I cannot make the current node get highlighted in the tree area with a blue background. This works perfectly in the built-in sections: the current node gets blue, even a page refresh re-selects the current node.
Basically my code refers to the right side of the page, the dashboard (angular controlelr and html view). To the left I have minimal influence, only my TreeController by setting the nodes for the expanded nodes (with proper ids). However umbraco is not willing to make my node blue.
Custom section: mark currentNode blue
Hi guys!
I've extended my umbraco backoffice with a custom section, but I cannot make the current node get highlighted in the tree area with a blue background. This works perfectly in the built-in sections: the current node gets blue, even a page refresh re-selects the current node.
Basically my code refers to the right side of the page, the dashboard (angular controlelr and html view). To the left I have minimal influence, only my TreeController by setting the nodes for the expanded nodes (with proper ids). However umbraco is not willing to make my node blue.
What am I missing?
thanks in advance,
Peter
Hi Peter
Any chance you can share your code? It can probably make it easier to give you some suggestions if this is possible at all.
/Jan
Hi Peter,
you should use the navigationService in your angularJS controller for mark the current Node. This code do this for me:
And here you can find the documentation:
http://umbraco.github.io/Belle/#/api/umbraco.services.navigationService
Hope this helps.
Cheers,
Sören
Thank you guys for your feedback! Sören, that's exactly what I needed, works like a charm!
Hi Peter,
great that I could help you :-)
Cheers,
Sören
is working on a reply...