Umbraco.Community.SimpleTrees
16.0.1
dotnet add package Umbraco.Community.SimpleTrees --version 16.0.1
NuGet\Install-Package Umbraco.Community.SimpleTrees -Version 16.0.1
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.1" />
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.1" />
<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.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Umbraco.Community.SimpleTrees, 16.0.1"
#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.1
#: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.1
#tool nuget:?package=Umbraco.Community.SimpleTrees&version=16.0.1
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 |
---|---|---|
16.0.1 | 86 | 7/27/2025 |
16.0.1-alpha0003 | 133 | 7/9/2025 |
16.0.0 | 141 | 7/6/2025 |
16.0.0-alpha0008 | 134 | 7/6/2025 |
16.0.0-alpha0004 | 132 | 7/6/2025 |
15.0.1 | 83 | 7/27/2025 |
15.0.0 | 131 | 7/6/2025 |
15.0.0-alpha0004 | 133 | 7/6/2025 |