Konstrukt
🚨 Konstrukt is now Umbraco UI Builder 🚨
  • Konstrukt Documentation
  • Getting Started
    • Overview
    • Installation
    • Configuration
    • User Interface
  • Guides
    • Creating your first integration
  • Areas
    • Overview
    • Sections
      • Summary Dashboards
    • Trees
      • Folders
    • Dashboards
    • Context Apps
  • Collections
    • Overview
    • The Basics
    • List Views
      • Field Views
    • Editors
    • Child Collections
      • Child Collection Groups
  • Searching
    • Overview
    • Searchable Properties
  • Filtering
    • Overview
    • Global Filters
    • Data Views
      • Data Views Builders
    • Filterable Properties
  • Actions
    • Overview
    • The Basics
    • Action Visbility
    • Inbuilt Actions
  • Cards
    • Overview
    • Count Cards
    • Custom Cards
  • Property Editors
    • Overview
    • Entity Picker
  • Advanced
    • Virtual Sub Trees
    • Encrypted Properties
    • Value Mappers
    • Repositories
    • Events
  • Extras
    • Conventions
    • Umbraco Aliases
    • Konstrukt vs UI-O-Matic
    • Known Issues
    • Changelog
Powered by GitBook
On this page
  • AddKonstrukt
  • IKonstruktConfigurator
Edit on GitHub
  1. Getting Started

Configuration

Configuring Konstrukt, the back office UI builder for Umbraco.

Konstrukt can be configured in two ways, either directly via the AddKonstrukt extension method on IUmbracoBuilder, or via an IKonstruktConfigurator component registered with the DI container.

AddKonstrukt

To configure Konstrukt via the AddKonstrukt extension method, you extend the ConfigureServices method found in the Startup.cs file in the root of your web project. From within this method, before the call to AddComposers() we can add our AddKonstrukt configuration.

public class Startup
{
    ...
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddUmbraco(_env, _config)
            .AddBackOffice()
            .AddWebsite()
            .AddKonstrukt(cfg => {
                // Apply your configuration here
            })
            .AddComposers()
            .Build();
    }
    ...
}

The AddKonstrukt extension method accepts a single parameter, a delegate function with a Konstrukt configuration builder argument on which you can call the relevant fluent API's to define your solution.

IKonstruktConfigurator

To configure Konstrukt vis a IKonstruktConfigurator you can create a class anywhere in your project that inherits from the IKonstruktConfigurator interface and Konstrukt will automatically find them and register their configurations with the DI container.

public class MyKonstruktConfigurator : IKonstruktConfigurator
{
    public void Configure(KonstruktConfigBuilder builder)
    {
        // Apply your configuration here
    }
}

The IKonstruktConfigurator has a single Configure method with a single Konstrukt configuration builder argument on which you can call the relevant fluent API's to define your solution.

PreviousInstallationNextUser Interface

Last updated 2 years ago