Umbraco.Community.SimpleTrees 16.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Umbraco.Community.SimpleTrees --version 16.1.5
                    
NuGet\Install-Package Umbraco.Community.SimpleTrees -Version 16.1.5
                    
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.1.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Umbraco.Community.SimpleTrees" Version="16.1.5" />
                    
Directory.Packages.props
<PackageReference Include="Umbraco.Community.SimpleTrees" />
                    
Project file
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.1.5
                    
#r "nuget: Umbraco.Community.SimpleTrees, 16.1.5"
                    
#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.1.5
                    
#: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.1.5
                    
Install as a Cake Addin
#tool nuget:?package=Umbraco.Community.SimpleTrees&version=16.1.5
                    
Install as a Cake Tool

Umbraco.Community.SimpleTrees

Documentation Umbraco Marketplace GitHub NuGet Downloads Project Website

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
  • ✨ Custom Entity Actions!

Installation

Install Package

dotnet add package Umbraco.Community.SimpleTrees 

Quick Start

Register Tree

By default, this will display in the content section.

using Umbraco.Cms.Core.Models;
using Umbraco.Community.SimpleTrees.Core.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
@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)

Product 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.

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 50 2/1/2026
17.1.1-alpha.7 46 2/1/2026
17.1.0 94 1/28/2026
17.1.0-alpha.2 46 1/28/2026
17.0.1 110 12/26/2025
17.0.1-alpha.3 138 12/22/2025
17.0.0 144 11/29/2025
17.0.0-alpha.6 147 11/28/2025
16.1.6 80 2/16/2026
16.1.5 83 1/28/2026
16.1.5-alpha0036 86 1/28/2026
16.1.5-alpha0016 86 1/26/2026
16.1.5-alpha0014 80 1/26/2026
16.1.4 95 12/26/2025
16.1.4-alpha0003 111 12/26/2025
16.1.3 184 12/21/2025
16.1.3-alpha0023 276 12/17/2025
16.1.3-alpha0021 287 12/17/2025
16.1.3-alpha0012 266 12/15/2025
16.1.3-alpha0005 133 11/29/2025
Loading failed