Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.17 KB

optimizely.md

File metadata and controls

54 lines (39 loc) · 1.17 KB

Integrating with Optimizely CMS

Note: Do all of the steps in the global README.

Adding property support

  • dotnet add package Geta.OEmbed.Optimizely

Register services in Startup

Register the required services by executing the below extension method on your IServiceCollection.

public void ConfigureServices(IServiceCollection services)
{
    ...
    services.AddGetaOEmbed();
    services.AddGetaOEmbedOptimizely();
}

Then map the required oEmbed routes.

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    ...
    app.UseEndpoints(endpoints =>
    {
        ...
        endpoints.MapOEmbed();
    });
}

Decorate ContentMedia

Implement the interface IOEmbedMedia on all media data you want usable by the property.

Adding support for EPiServer.ContentDeliveryApi

  • dotnet add package Geta.OEmbed.Optimizely.ContentDeliveryApi

Register services in Startup

Register the required ConverterProvider implementations by executing the below extension method on your IServiceCollection.

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