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 (1)

Showing the top 1 NuGet packages that depend on Umbraco.Community.SimpleTrees:

Package Downloads
Umbraco.Community.Automate.Inspector

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
18.0.0 90 6/26/2026
18.0.0-alpha.6 57 6/25/2026
18.0.0-alpha.4 49 6/25/2026
18.0.0-alpha.3 57 6/21/2026
18.0.0-alpha.2 50 6/15/2026
18.0.0-alpha.1 53 6/13/2026
17.2.1 115 6/13/2026
17.2.0 144 3/20/2026
17.2.0-alpha.1 66 3/19/2026
17.1.1 108 3/18/2026
17.1.1-alpha.15 67 3/17/2026
17.1.1-alpha.9 85 2/1/2026
17.1.1-alpha.7 73 2/1/2026
17.1.0 129 1/28/2026
17.1.0-alpha.2 76 1/28/2026
16.1.7 101 3/18/2026
16.1.6 111 2/16/2026
16.1.5 114 1/28/2026
16.1.5-alpha0036 110 1/28/2026
16.1.5-alpha0016 116 1/26/2026
Loading failed