Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
The biggest problem I have with Umbraco is extending it with a new Section and Tree (well - not the tree but the html).
My TreeNodeCollection
protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings) { var nodes = new TreeNodeCollection(); var node = CreateTreeNode("1234", id, queryStrings, "Name", "icon-autofill", false); nodes.Add(node); return nodes; }
So my edit.html should be in
App_Plugins/WebshopSection/backoffice/CategoryTree/edit.html
But when I click on the item to edit it Umbraco tells me that
views/CategoryTree/edit.html
does not exits - I cant find a specific rule for where the files should be.
Hi Niels
Decorate your controller with a 'PluginController' attribute
[Tree("settings", "favouriteThingsAlias", TreeTitle = "Favourite Things Name", TreeGroup = "favoritesGroup", SortOrder = 3)] [PluginController("favouriteThings")] public class FavouriteThingsTreeController : TreeController
this would make your edit file located at
App_Plugins/favouriteThings/backoffice/favouriteThingsAlias/edit.html
so in your case [PluginController("WebshopSection")]
and make sure 'CategoryTree' matches the 'alias' of your custom tree.
regards
Marc
Hello, Answer solved this link : https://our.umbraco.com/forum/umbraco-8/95927-custom-section-umb-8 best regards, Cédric
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Extending Umbraco 8 with new Section
The biggest problem I have with Umbraco is extending it with a new Section and Tree (well - not the tree but the html).
My TreeNodeCollection
So my edit.html should be in
But when I click on the item to edit it Umbraco tells me that
does not exits - I cant find a specific rule for where the files should be.
Hi Niels
Decorate your controller with a 'PluginController' attribute
[Tree("settings", "favouriteThingsAlias", TreeTitle = "Favourite Things Name", TreeGroup = "favoritesGroup", SortOrder = 3)] [PluginController("favouriteThings")] public class FavouriteThingsTreeController : TreeController
this would make your edit file located at
App_Plugins/favouriteThings/backoffice/favouriteThingsAlias/edit.html
so in your case [PluginController("WebshopSection")]
and make sure 'CategoryTree' matches the 'alias' of your custom tree.
regards
Marc
Hello, Answer solved this link : https://our.umbraco.com/forum/umbraco-8/95927-custom-section-umb-8 best regards, Cédric
is working on a reply...