yes I have followed the article and got worked custom section with the three tree nodes. but issue is still the same. when i click on the each node it display the edit.html. But i need diferent views(html pages).
Urls displays respectively
/Softhome/SofthomeTree/edit/dashboard_1
/Softhome/SofthomeTree/edit/dashboard_2
/Softhome/SofthomeTree/edit/dashboard_3
my treenode collection like
var tree = new TreeNodeCollection { CreateTreeNode("dashboard_1", id, queryStrings, "My Node 1", "icon-server"), CreateTreeNode("dashboard_2", id, queryStrings, "My Node 2", "icon-bus"), CreateTreeNode("dashboard_3", id, queryStrings, "My Node 3", "icon-car") };
is there aney way i can get dashboard_1.html, dashboard_2.html, dashboard_3.html insted of default edit.html.
How to directs Tree Nodes int to differents views
In my back office area, I have created 3 nodes tree in my custom area, I need direct different 3 views to each nodes(by default it's edit.html)
Once My Node1 click i need to show products page, My Node 2 Must shows Orders and My Node 3 must shows Suppliers.
In Documentaion it says,
Developers can specify a custom
RoutePath
for any tree node which will cause umbraco to route to that specific locationCan some one point me how to specify the view. thanks in advance
Hi Shashi
Could this article by Markus Jonhansson be what you're looking for? http://www.enkelmedia.se/blogg/2013/11/22/custom-sections-in-umbraco-7-%E2%80%93-part-2-the-views.aspx
/Jan
Thank you very much for your reply Jan,
yes I have followed the article and got worked custom section with the three tree nodes. but issue is still the same. when i click on the each node it display the edit.html. But i need diferent views(html pages).
Urls displays respectively
/Softhome/SofthomeTree/edit/dashboard_1
/Softhome/SofthomeTree/edit/dashboard_2
/Softhome/SofthomeTree/edit/dashboard_3
my treenode collection like
var tree = new TreeNodeCollection
{
CreateTreeNode("dashboard_1", id, queryStrings, "My Node 1", "icon-server"),
CreateTreeNode("dashboard_2", id, queryStrings, "My Node 2", "icon-bus"),
CreateTreeNode("dashboard_3", id, queryStrings, "My Node 3", "icon-car")
};
is there aney way i can get dashboard_1.html, dashboard_2.html, dashboard_3.html insted of default edit.html.
thank you very much
Were you ever able to figure this one out? I am having the same problem. Thank you
In your controller use the code at the bottom of my post.
This will get the HTML page from your App_Plugins folder if your code is correct. (you can use this blog post for details)
This is how I do it.
is working on a reply...