Our.Umbraco.SimpleTreeMenu
0.2.0
See the version list below for details.
dotnet add package Our.Umbraco.SimpleTreeMenu --version 0.2.0
NuGet\Install-Package Our.Umbraco.SimpleTreeMenu -Version 0.2.0
<PackageReference Include="Our.Umbraco.SimpleTreeMenu" Version="0.2.0" />
paket add Our.Umbraco.SimpleTreeMenu --version 0.2.0
#r "nuget: Our.Umbraco.SimpleTreeMenu, 0.2.0"
// Install Our.Umbraco.SimpleTreeMenu as a Cake Addin #addin nuget:?package=Our.Umbraco.SimpleTreeMenu&version=0.2.0 // Install Our.Umbraco.SimpleTreeMenu as a Cake Tool #tool nuget:?package=Our.Umbraco.SimpleTreeMenu&version=0.2.0
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 href="@url">@(element.Value<string>("title"))</a></li>
if (item.Children.Any())
{
@:<ul>
foreach (var child in item.Children)
{
var cElement = (IPublishedElement)child;
@:<li>@(cElement.Value<string>("title"))</li>
}
@:</ul>
}
}
@:</ul>
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- UmbracoCMS.Core (>= 8.1.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 |
---|---|---|
4.0.6 | 352 | 7/10/2024 |
4.0.5 | 1,610 | 11/2/2023 |
4.0.4 | 393 | 10/2/2023 |
4.0.3 | 258 | 8/9/2023 |
4.0.2 | 2,527 | 4/3/2023 |
4.0.1 | 1,072 | 3/18/2023 |
4.0.0 | 441 | 12/2/2022 |
3.0.3 | 1,284 | 11/19/2022 |
3.0.2 | 2,035 | 10/12/2022 |
3.0.1 | 1,133 | 9/20/2022 |
3.0.0 | 1,150 | 8/4/2022 |
2.0.1 | 1,690 | 5/25/2022 |
2.0.0 | 1,128 | 12/6/2021 |
2.0.0-beta3 | 1,580 | 11/26/2021 |
2.0.0-beta2 | 3,187 | 10/4/2021 |
2.0.0-beta | 311 | 10/4/2021 |
1.1.0 | 5,679 | 11/19/2020 |
1.0.0 | 2,245 | 8/21/2020 |
0.2.2 | 1,529 | 4/29/2020 |
0.2.0 | 794 | 12/12/2019 |
0.1.3 | 488 | 12/4/2019 |
0.1.1 | 496 | 11/14/2019 |
- Issue: Fixed issue with angularjs release mode.
- Feature: Added clone/copy
- Minor UI changes
- Removed default datatype and default doctype from package