NTB.Mediebank 1.0.4

dotnet add package NTB.Mediebank --version 1.0.4
                    
NuGet\Install-Package NTB.Mediebank -Version 1.0.4
                    
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="NTB.Mediebank" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NTB.Mediebank" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="NTB.Mediebank" />
                    
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 NTB.Mediebank --version 1.0.4
                    
#r "nuget: NTB.Mediebank, 1.0.4"
                    
#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 NTB.Mediebank@1.0.4
                    
#: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=NTB.Mediebank&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=NTB.Mediebank&version=1.0.4
                    
Install as a Cake Tool

NTB Mediebank for Optimizely CMS 12

Integrates NTB Mediebank asset gallery into Optimizely CMS 12, allowing editors to browse, search, and select digital assets directly from the CMS.

Features

  • Integrated Gallery: Access NTB Mediebank directly from the Optimizely top menu.
  • Modern UI: Built with React and Tailwind CSS for a seamless experience.
  • Role-based Access: Configurable authorization policies for the Mediebank interface.

Installation

1. Install the NuGet Package

Add the NuGet package to your Optimizely CMS 12 project:

dotnet add package NTB.Mediebank

2. Register Services

In your Startup.cs (or Program.cs in .NET 6+), register the Mediebank services:

public void ConfigureServices(IServiceCollection services)
{
    services.AddMediebank();
}

By default, the add-on requires users to be in CmsAdmins, Administrator, or WebAdmins roles. You can customize the authorization policy:

services.AddMediebank(options =>
{
    options.AddPolicy("Mediebank:Security:Policy", policy =>
    {
        policy.RequireRole("MyCustomRole");
    });
});

3. Use the Middleware

Ensure the Mediebank middleware is used in the Configure method:

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    // ... other middleware
    app.UseMediebank();
}

Configuration

Once installed and configured, follow these steps to set up the connection to NTB Mediebank:

  1. Log in to your Optimizely CMS instance.
  2. Navigate to Mediebank → Settings in the top menu.
  3. Select your Mediebank provider.
  4. Enter your Client ID and Client Secret provided by your provider.
  5. Save the settings.

You can now access the Mediebank → Gallery to start browsing assets.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  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

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
1.0.4 152 3/11/2026
1.0.3 112 3/4/2026
1.0.2 205 2/23/2026
1.0.1 134 2/19/2026
1.0.0 140 1/29/2026

1.0.3: Fixed a problem where our media types had a higher priority than the host's own types. Switched to bundling with nuspec.