Skip to content

Files

Latest commit

b27bb68 · Nov 18, 2024

History

History
59 lines (47 loc) · 1.57 KB

README.md

File metadata and controls

59 lines (47 loc) · 1.57 KB

Audit for Optimizely CMS

This module adds visualisation of how Optimizely content types and audiences are used across sites.

Sites

Page Types

Block Types

Audiences

Installation

Make sure you have the Optimizely Nuget feed configured.

Add the package to your solution

install-package N1990.Episerver.Cms.Audit

or

dotnet add package N1990.Episerver.Cms.Audit

Configure services and routing during startup (without this, you will not see module under Add-ons in the UI)

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        //...
        services.AddAuditServices();
        //...
    }
    
    public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
    {
        //...
        app.UseEndpoints(endpoints =>
        {
            
            // other endpoint configuration
            endpoints.MapControllerRoute(
                name: "default",
                pattern: "{controller=Home}/{action=Index}/{id?}");
        });
        //...
    }
   
}

Security

You will need to be a member of one of these roles to get access to the module:

  • AuditAdmins
  • CmsAdmins

Sandbox

This repository also have a Sandbox project, based on the Alloy demo site. You should be able to run it directly in your development environment.

In order to log in, you need to create an admin user. Go to: https://localhost:5000/util/register to create your admin user.