rickbutterfield / Umbraco.Community.BlockPreview

Easy to use rich HTML backoffice previews for the Umbraco Block List and Block Grid editors.
MIT License
20 stars 12 forks source link

Missing block-preview.html for v2.0.0RC2 #61

Closed parxal closed 2 months ago

parxal commented 2 months ago

Which Umbraco.Community.BlockPreview version are you using?

v2.0.0RC2

Which Umbraco version are you using? For example: 10.4.0 - don't just write v10

14.1.1

Bug summary

Missing block-preview.html for v2.0.0RC2

Steps to reproduce

Install nuget

Expected result / actual result

See block-preview.html

rickbutterfield commented 2 months ago

Hi @parxal - now that Umbraco 14 is using Web Components, the block-preview.html file doesn't exist. Please follow the instructions in the v2 README to get up and running, specifically either one of these configurations:

Program.cs:

+using Umbraco.Community.BlockPreview.Extensions;

builder.CreateUmbracoBuilder()
    .AddBackOffice()
    .AddWebsite()
    .AddDeliveryApi()
    .AddComposers()
+   .AddBlockPreview(options =>
+   {
+       // This will enable the preview for every content type
+       options.BlockGrid.Enabled = true;
+   })
    .Build();

or appsettings.json:

{
  "BlockPreview": {
    "BlockGrid": {
      "Enabled": true
    }
  }
}