Umbraco.Community.SimpleTrees
16.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Umbraco.Community.SimpleTrees --version 16.0.0
NuGet\Install-Package Umbraco.Community.SimpleTrees -Version 16.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Umbraco.Community.SimpleTrees" Version="16.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Umbraco.Community.SimpleTrees" Version="16.0.0" />
<PackageReference Include="Umbraco.Community.SimpleTrees" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Umbraco.Community.SimpleTrees --version 16.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Umbraco.Community.SimpleTrees, 16.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Umbraco.Community.SimpleTrees@16.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Umbraco.Community.SimpleTrees&version=16.0.0
#tool nuget:?package=Umbraco.Community.SimpleTrees&version=16.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Umbraco.Community.SimpleTrees
This packages aims to help developers quickly put together Umbraco Trees using C#.
Features
- C# custom tree creation
- No javascript or umbraco-package.json files required
- Supports both Views & View Components
- Easy to define section permissions
Quick Start
Install Package
dotnet add package Umbraco.Community.SimpleTrees
Register Tree
By default, this will display in the content section.
using Umbraco.Cms.Core.Models;
using Umbraco.Community.SimpleTrees.Models;
namespace Umbraco.Community.SimpleTrees.TestSite.Trees;
public class MyTree : SimpleTree
{
public override Task<PagedModel<ISimpleTreeItem>> GetTreeRootAsync(int skip, int take, bool foldersOnly)
{
var data = new List<ISimpleTreeItem>
{
CreateRootItem("James", Guid.NewGuid().ToString(), "icon-user"),
CreateRootItem("Tim", Guid.NewGuid().ToString(), "icon-user"),
};
return Task.FromResult(new PagedModel<ISimpleTreeItem>(data.Count, data));
}
public override Task<PagedModel<ISimpleTreeItem>> GetTreeChildrenAsync(string entityType, string parentUnique, int skip, int take, bool foldersOnly) => Task.FromResult(EmptyResult());
public override string Name => "My Tree";
}
Create Views
- Your views must go in
/Views/Trees - You views must be the name of your tree entities
- For example:
MyTree.cs⇒/Views/Trees/MyItem.cshtml&/Views/Trees/MyRoot.cshtml
- For example:
@inherits Umbraco.Community.SimpleTrees.Web.SimpleTreeViewPage
<uui-box headline="This is a custom tree item">
<div>
<table>
<thead>
<tr>
<th>Entity Type</th>
<th>Unique</th>
</tr>
</thead>
<tbody>
<tr>
<td>@Model.EntityType</td>
<td>@Model.Unique</td>
</tr>
</table>
</div>
</uui-box>
Contributing
Contributions to this package are most welcome! Please visit the Contributing page.
Acknowledgements (Thanks)
- LottePitcher - opinionated-package-starter
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- jcdcdev.Umbraco.Core (>= 16.1.0 && < 17.0.0)
- Umbraco.Cms.Api.Common (>= 16.0.0 && < 17.0.0)
- Umbraco.Cms.Api.Management (>= 16.0.0 && < 17.0.0)
- Umbraco.Cms.Web.Website (>= 16.0.0 && < 17.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 17.1.1-alpha.9 | 40 | 2/1/2026 |
| 17.1.1-alpha.7 | 40 | 2/1/2026 |
| 17.1.0 | 88 | 1/28/2026 |
| 17.1.0-alpha.2 | 42 | 1/28/2026 |
| 17.0.1 | 109 | 12/26/2025 |
| 17.0.1-alpha.3 | 137 | 12/22/2025 |
| 17.0.0 | 140 | 11/29/2025 |
| 17.0.0-alpha.6 | 144 | 11/28/2025 |
| 17.0.0-alpha.3 | 153 | 11/26/2025 |
| 17.0.0-alpha.2 | 140 | 11/26/2025 |
| 16.1.5 | 79 | 1/28/2026 |
| 16.1.5-alpha0036 | 82 | 1/28/2026 |
| 16.1.5-alpha0016 | 83 | 1/26/2026 |
| 16.1.5-alpha0014 | 76 | 1/26/2026 |
| 16.1.4 | 94 | 12/26/2025 |
| 16.1.4-alpha0003 | 110 | 12/26/2025 |
| 16.1.3 | 183 | 12/21/2025 |
| 16.1.3-alpha0023 | 275 | 12/17/2025 |
| 16.1.3-alpha0021 | 285 | 12/17/2025 |
| 16.1.3-alpha0012 | 264 | 12/15/2025 |
| 16.1.3-alpha0005 | 130 | 11/29/2025 |
| 16.1.2 | 226 | 10/29/2025 |
| 16.1.2-alpha0006 | 195 | 10/28/2025 |
| 16.1.2-alpha0002 | 188 | 10/20/2025 |
| 16.1.1 | 181 | 9/13/2025 |
| 16.1.1-alpha0022 | 161 | 9/13/2025 |
| 16.1.1-alpha0014 | 171 | 9/6/2025 |
| 16.1.1-alpha0008 | 157 | 9/6/2025 |
| 16.1.1-alpha0003 | 163 | 9/6/2025 |
| 16.1.0 | 153 | 8/15/2025 |
| 16.0.2 | 199 | 8/12/2025 |
| 16.0.2-alpha0003 | 175 | 8/10/2025 |
| 16.0.1 | 166 | 7/27/2025 |
| 16.0.1-alpha0003 | 193 | 7/9/2025 |
| 16.0.0 | 200 | 7/6/2025 |
| 16.0.0-alpha0008 | 194 | 7/6/2025 |
| 16.0.0-alpha0004 | 190 | 7/6/2025 |
| 15.1.2 | 206 | 10/29/2025 |
| 15.1.2-alpha0002 | 185 | 10/21/2025 |
| 15.1.1 | 170 | 9/13/2025 |
| 15.1.0 | 120 | 8/15/2025 |
| 15.0.1 | 164 | 7/27/2025 |
| 15.0.0 | 187 | 7/6/2025 |
| 15.0.0-alpha0004 | 184 | 7/6/2025 |