Our.Umbraco.DocumentTypePicker 1.0.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Our.Umbraco.DocumentTypePicker --version 1.0.0
NuGet\Install-Package Our.Umbraco.DocumentTypePicker -Version 1.0.0
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.DocumentTypePicker" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Our.Umbraco.DocumentTypePicker --version 1.0.0
#r "nuget: Our.Umbraco.DocumentTypePicker, 1.0.0"
#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 Our.Umbraco.DocumentTypePicker as a Cake Addin
#addin nuget:?package=Our.Umbraco.DocumentTypePicker&version=1.0.0

// Install Our.Umbraco.DocumentTypePicker as a Cake Tool
#tool nuget:?package=Our.Umbraco.DocumentTypePicker&version=1.0.0

RB: Document Type Picker

The Document Type Picker package allows editors to choose a list of Document Types to be saved against a content page. This could be used for things like site map exclusions or navigation lists.

Set Up

Create a new data type using the RB.DocumentTypePicker property editor. Add a new property to a document type using the new data type you have just created. Once you have created your new property, you should be able to choose from a list of current document types present within your Umbraco solution.

Converter

When using a property value on a template, add the following code to return and use a list of document type aliases.

@{
    IEnumerable<string> documentTypes = CurrentPage.GetPropertyValue<IEnumerable<string>>("alias");
}

Once converted, you will be able to select or loop through each document type. For example:

@{
    // Loop through each alias
    foreach (var documentType in documentTypes)
    {
        @documentType;
    }
}

Original version

This code is from a repository on BitBucket by RB. The original version is published as an Umbraco package. This version publishes the same code as a NuGet package called Our.Umbraco.DocumentTypePicker.

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
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