as I know some routes are in Umbraco fix.
If you create in your section some trees they will always route on "/#/sectionname".
The children of this routeelement can change the route. For examle you got a html file which you want to display on the right. That works in your treecontroller.
protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
{
var nodes = new TreeNodeCollection();
if (id == Constants.System.Root.ToInvariantString())
{
nodes.Add(CreateTreeNode("NODEALIAS", "-1", queryStrings, "NODENAME", "icon-settings", false, "/SECTIONNAME/FOLDERNAME_IN_TREE/HTMLFILENAME/1"));
}}
I hope i could help you a bit. If you have found out a better way. Please tell me. Thank you! :)
Custom Section - Root and Children routes?
Hi guys
Why does the root node look for the html file in /views/ and not in /app_plugins/?
When this is reversed for children.
I would like to keep my plugins together, either in the views or app_plugins folder, it dont seem to me to be good practices to split it up.
Anyone have the same issue, and maybe a workaround for it ?
Thanks in advanced
/Robin
Hello Robin,
as I know some routes are in Umbraco fix. If you create in your section some trees they will always route on "/#/sectionname". The children of this routeelement can change the route. For examle you got a html file which you want to display on the right. That works in your treecontroller.
I hope i could help you a bit. If you have found out a better way. Please tell me. Thank you! :)
is working on a reply...