Our.Umbraco.SimpleTreeMenu
5.0.0-beta2
This is a prerelease version of Our.Umbraco.SimpleTreeMenu.
dotnet add package Our.Umbraco.SimpleTreeMenu --version 5.0.0-beta2
NuGet\Install-Package Our.Umbraco.SimpleTreeMenu -Version 5.0.0-beta2
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="Our.Umbraco.SimpleTreeMenu" Version="5.0.0-beta2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Our.Umbraco.SimpleTreeMenu" Version="5.0.0-beta2" />
<PackageReference Include="Our.Umbraco.SimpleTreeMenu" />
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 Our.Umbraco.SimpleTreeMenu --version 5.0.0-beta2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Our.Umbraco.SimpleTreeMenu, 5.0.0-beta2"
#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 Our.Umbraco.SimpleTreeMenu@5.0.0-beta2
#: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=Our.Umbraco.SimpleTreeMenu&version=5.0.0-beta2&prerelease
#tool nuget:?package=Our.Umbraco.SimpleTreeMenu&version=5.0.0-beta2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Our.Umbraco.SimpleTreeMenu
A simple treemenu propertyeditor that uses a doc-type (element) for menu items.
With a valueconverter that utilize the built in nestedcontent for type conversion of menu items. Every item can be cast to an IPublishedElement for propertyaccess through Umbracos extension-methods.
It will work without the valueconverter, just remove the binary and use JObject instead of IEnumerable<ISimpleTreeItem>
Example:
@{
var navigationModel = Model.Value<IEnumerable<ISimpleTreeItem>>("navigation", defaultValue: new List<ISimpleTreeItem>());
@:<ul>
foreach (var item in navigationModel)
{
var element = (IPublishedElement)item;
var url = element.Value<IPublishedContent>("linkedContent")?.Url ?? element.Value<string>("linkedUrl") ?? "#";
@:<li><a class="nav-link" href="@url">@(element.Value<string>("title"))</a></li>
if (item.Children.Any())
{
@:<ul>
foreach (var child in item.Children)
{
var cElement = (IPublishedElement)child;
var cUrl = cElement.Value<IPublishedContent>("linkedContent")?.Url ?? cElement.Value<string>("linkedUrl") ?? "#";
@:<li><a class="nav-link" href="@cUrl">@(cElement.Value<string>("title"))</a></li>
}
@:</ul>
}
}
@:</ul>
}
| 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 is compatible. 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.
-
net10.0
- Umbraco.Cms.Web.Website (>= 17.0.0 && < 18.0.0)
-
net9.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 |
|---|---|---|
| 5.0.0-beta2 | 82 | 8/28/2026 |
| 5.0.0-beta | 96 | 8/25/2026 |
| 4.0.6 | 2,563 | 7/10/2024 |
| 4.0.5 | 2,828 | 11/2/2023 |
| 4.0.4 | 505 | 10/2/2023 |
| 4.0.3 | 407 | 8/9/2023 |
| 4.0.2 | 2,933 | 4/3/2023 |
| 4.0.1 | 1,756 | 3/18/2023 |
| 4.0.0 | 624 | 12/2/2022 |
| 3.0.3 | 1,676 | 11/19/2022 |
| 3.0.2 | 2,241 | 10/12/2022 |
| 3.0.1 | 1,331 | 9/20/2022 |
| 3.0.0 | 1,328 | 8/4/2022 |
| 2.0.1 | 1,895 | 5/25/2022 |
| 2.0.0 | 1,317 | 12/6/2021 |
| 2.0.0-beta3 | 1,768 | 11/26/2021 |
| 2.0.0-beta2 | 3,640 | 10/4/2021 |
| 2.0.0-beta | 487 | 10/4/2021 |
| 1.1.0 | 6,141 | 11/19/2020 |
| 1.0.0 | 2,482 | 8/21/2020 |
Loading failed