Adding new tree to existing section without nesting it #56
-
I am trying to extend the member section with a new tree that shows a custom listview like this: builder.WithSection("member", withSectionConfig => withSectionConfig
.AddTree("Member Notifications", "Subscribers list", "icon-users", treeConfig => treeConfig
.AddCollection<MemberView>(x => x.Id, "Subscriber", "Subscribers",
"List of notification subscribers", "icon-user", "icon-users", collectionConfig =>
collectionConfig I'd like to have the member group (Member Notifications), and then just one tree node, not a nested one. But I can't figure out how to only show one of those two. |
Beta Was this translation helpful? Give feedback.
Answered by
mattbrailsford
Mar 8, 2023
Replies: 1 comment
-
It's not really possible. This is just how Umbraco does things. If there is only 1 tree, it won't bother rendering the root node, but if there are multiple trees, each tree will have a root node which then displays the items within it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jemayn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not really possible. This is just how Umbraco does things. If there is only 1 tree, it won't bother rendering the root node, but if there are multiple trees, each tree will have a root node which then displays the items within it.