Digbyswift.Umbraco.Web 10.0.7

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package Digbyswift.Umbraco.Web --version 10.0.7
NuGet\Install-Package Digbyswift.Umbraco.Web -Version 10.0.7
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="Digbyswift.Umbraco.Web" Version="10.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Digbyswift.Umbraco.Web --version 10.0.7
#r "nuget: Digbyswift.Umbraco.Web, 10.0.7"
#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.
// Install Digbyswift.Umbraco.Web as a Cake Addin
#addin nuget:?package=Digbyswift.Umbraco.Web&version=10.0.7

// Install Digbyswift.Umbraco.Web as a Cake Tool
#tool nuget:?package=Digbyswift.Umbraco.Web&version=10.0.7

Digbyswift.Umbraco.Web

A nullable-enabled library of useful classes and extensions for supporting an Umbraco v10+ project.

Controllers

A set of base controllers (and supporting classes) that expect an aggregate of dependencies:

public abstract class BaseSurfaceController : SurfaceController
{
    protected readonly ILogger Logger;
    protected readonly IViewRenderer ViewRenderer;

    protected BaseSurfaceController(SurfaceControllerDependencies defaultDependencies) : base(
        defaultDependencies.UmbracoContextAccessor,
        defaultDependencies.DatabaseFactory,
        defaultDependencies.Services,
        defaultDependencies.AppCaches,
        defaultDependencies.ProfilingLogger,
        defaultDependencies.PublishedUrlProvider)
    {
        Logger = defaultDependencies.Logger;
        ViewRenderer = defaultDependencies.ViewRenderer;
    }
}

These include:

  • BaseController
  • BaseController<T>
  • BaseSurfaceController
  • BaseSurfaceController<T>
  • BaseVirtualController
  • BaseVirtualController<T>

Where <T> allows for a strongly typed content model instead of IPublishedContent.

There is also an extension method to register the supporting classes:

services.AddControllerDependencies();

Extensions

A set of basic but useful extensions for making life just a little easier. These include:

BlockListItemExtensions

  • TypeAlias()
  • Is(string alias)

IContentExtensions

  • GetDirtyProperties(content)
  • SetValueAsDocumentUdi(string alias, Guid contentKey)
  • SetValueAsMediaUdi(string alias, Guid contentKey)
  • SetValueAsMemberUdi(string alias, Guid contentKey)
  • SetValueAsElementUdi(string alias, Guid contentKey)

IContentServiceExtensions

  • GetAllChildren(int parentId)
  • GetAllOfType(int contentTypeId)

GuidExtensions

  • ToUdi(string entityType = uConstants.UdiEntityType.Document)

HttpRequestExtensions

  • IsPreviewPath()
  • IsReservedPath()
  • IsMediaPath()

LinkExtensions

  • TargetAsAttribute()

IMemberExtensions

  • GetDirtyProperties()
  • ToIdentityUser(string memberTypeAlias, bool isApproved = true)

PublishedContentExtensions

  • TypeAlias()
  • Is(string alias)
  • IsAny(params string[] alias)
  • HasTemplate()
  • HasAncestor(string docTypeAlias)
  • FirstSibling(content)
  • FirstSibling(string alias)
  • FirstSibling<T>(content)
  • PreviousSibling(content)
  • PreviousSibling(string alias)
  • PreviousSibling<T>(Func<T, bool>? filter = null)
  • LastSibling(content)
  • LastSibling(string alias)
  • LastSibling<T>(content)
  • NextSibling(Func<IPublishedbool>? filter = null)
  • NextSibling(string alias)
  • NextSibling<T>(Func<T, bool>? filter = null)

PublishedElementExtensions

  • TypeAlias()
  • Is(string alias)
  • IsAny(params string[] alias)

UdiExtensions

  • ToGuid()
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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
10.0.7 740 5/24/2023
10.0.6 615 5/24/2023
10.0.5 658 5/24/2023
10.0.4 1,161 12/19/2022
10.0.3 787 12/19/2022
10.0.2 808 12/19/2022
10.0.1 934 11/10/2022
10.0.0 941 10/11/2022