GithubHelp home page GithubHelp logo

rickbutterfield / umbraco.community.blockpreview Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 10.0 47.91 MB

Easy to use rich HTML backoffice previews for the Umbraco Block List and Block Grid editors.

License: MIT License

JavaScript 3.24% HTML 21.77% C# 68.32% CSS 6.67%
umbraco umbraco-v10 umbraco-cms umbraco-package umbraco-v11 hacktoberfest umbraco-v12 umbraco-v13

umbraco.community.blockpreview's Introduction

Hey there! 👋

I'm Rick, and I'm a full stack lead software engineer from the UK.

I'm currently working as Lead Software Engineer for Wattle where I get to build websites and software. This means I'm working across tech stacks—C# .NET, SQL and Umbraco as well as HTML, CSS/Sass, JS/ES6+ and Node.

I'm a 2× Umbraco MVP, Certified Master and part of the Umbraco Community Sustainability Team.

umbraco.community.blockpreview's People

Contributors

aaronsadleruk avatar bielu avatar dvandevliet avatar madsoulswe avatar rickbutterfield avatar robertjf avatar rosenpetrovffw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

umbraco.community.blockpreview's Issues

Block List Allowed Content Types Settings Issues

Which Umbraco.Community.BlockPreview version are you using?

2.0.2

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

14.2.0

Bug summary

Hello!

Love your work!

Block List Allowed Content Types values added in appSettings don't seem to be respected

It seems to just be Block Previews for all Block List, or none

There is also some strange behaviour if you have any URL/ Document Pickers or Dropdowns inside a block, and, when you start nesting block grids / lists

I can't give you good repro steps for that and it could be a 14 issue and not the package based on how it saves the Data Types? I can raise a seperate bug if I can figure it out

Also, "umbraco" seems to be prepended to stylesheet links for Block Grids when viewing a preview.

Again, could be 14, but, have a rewrite to sort this one out. This happens whether the css file path is /path, ./path, or ~/path

Steps to reproduce

Add Content Type Aliases to the allowed content types for block list in appsettings
View the result

Expected result / actual result

Adding the alias for an Element/Document type into this list should show the preview, and not show previews for other block lists

Nesting a Block Grid in a Block List doesn't render the grid properly

We have a set up that allows us to render a Block Grid in a Block List component, which is designed (currently) to allow us to render a two-column section in the list.

The problem is that the content in the Block Grid doesn't render at all in this situation, because the actual content is being substituted out for string in the AREA_TEMPLATE constant when in fact it needs to be rendered correctly in this instance.

I've resolved this by adding another ViewData entry called "blockGridPreview" in BackOfficeGridPreviewService and checking for that in the GetPreviewBlockGridItemAreasHtmlAsync extension method and friends. This will only be set if the Grid is the primary property type.

This will still not work if we have a Grid Block nested in a Grid Block for some reason (and why would you want to anyway).

A better solution may be to somehow scope the substitution that these extension methods do to the current "nesting level" and ensure it's only done if at the root of the tree.

There's a PR coming to resolve this.

Missing block-preview.html for v2.0.0RC2

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

UmbracoContext.IsFrontEndUmbracoRequest() Always True

Which Umbraco.Community.BlockPreview version are you using?

1.8.4

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

13.3.2

Bug summary

I'm attempting to add some code to a razor file that should only render if it's being rendered in the backoffice.

I believe the approach in the past was to reference UmbracoContext.IsFrontEndUmbracoRequest().

I tried to use this but it actually returns true when a razor partial is rendered from the backoffice.

Steps to reproduce

Add this to any razor file you are trying to render in the backoffice:

@if (!UmbracoContext.IsFrontEndUmbracoRequest())
{
    <p>Hello Backoffice!</p>
}

Expected result / actual result

I'd expect "Hello Backoffice!" to render only in the backoffice preview. It currently doesn't render anywhere. IsFrontEndUmbracoRequest() always returns true.

Block border

Is it possible to keep the light gray border from the Blocklist editor around the blocks with the padding to ensure each block is clear?

The red line should make it clear the blocks are separate

image

like this:

image

Preview of Umbraco.MultipleTextstring

Not sure if this is related to package or Umbraco's internal BlockEditorConverter.

Value is passed as [{value: "A"}, {value: "B"}, {value: "C"}] to PreviewMarkup call.
Same value for the GetById call in the backoffice.
Also previewed as that value, so the conversion located in MultipleTextStringPropertyValueEditor is not happening.

Preview is sending incorrect isgrid

Which Umbraco.Community.BlockPreview version are you using?

1.8.3

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

13.2.2

Bug summary

If you nest block list editor in block grid, it will try render block list as block grid

Steps to reproduce

create document with grid,
in grid create block which takes block list,
in block list create component which uses grid
LMK if you need any more information on it

Expected result / actual result

Block list view is loaded as block list

Does not work when published to linux

The block preview doesn't work if you publish a release version and host it on linux (lots of angular errors in the back office)

If however you publish in debug mode then all works ok. I suspect it may be something to do with smidge.

v1.1.2 seems to break all block previews

Hi,

I just upgraded from v1.1.0 to v1.1.2, but now it seems like all my blocks are not rendering correctly anymore. I am running Umbraco 11.2.0 and see the following error in my console:
image

I did notice that there are now two app plugins folders so I tested with both files, but they both give the same issues
image

Is there anything else that I have to change to get the version working?

App_Plugins folder not copied

Files are not being copied from the nupkg.
Reason being the targets file inside buildTransitive folder of the nupkg isn't being consumed due to naming mismatch.

BlockGridItem contains no Areas when rendering preview

I have created a new Tabbed Container block. It has a single area that accepts only Tab Content blocks. I created a page with a Tabbed Container block and was able to add 2 Tab Content blocks, though it wasn't easy because the Circled Plus icon would nearly always open the Settings panel AND a panel to add Blocks (same level as the Tabbed Container block).

When debugging the view while navigating to that page on the front end, I could see that the Areas property had data, two items in this instance. The Column span property also had a value, 12.

When debugging the view while previewing in the backoffice, the Areas property had zero data and the column span property was 0.

This seems like it's an issue, but the preview does show the contents of the areas from other layout blocks. This makes me think the Areas property data is loaded later than it should be. When the Tabbed Container block view is called the Areas property is empty, which means I cannot render the tabs before rendering the tab contents.

I hope this makes sense.

Umbraco 12 version?

Hi there,

It seems that the latest release has a dependency < 11.0.0 - is it possible to to get this upgraded to support Umbraco 11 and 12?

Error: [$controller:ctrlreg]

I am trying to use the package in my solution that runs on .NET 7.0 with Umbraco v12
Installed the package successfully and set the custom view for one of my components in a block list to the "block-preview.html".
I have a cs.html file in Views/Partials/blocklist/Components with the same filename as my component's alias.
I try to just render out a p-tag.
But this results in the following error:

Screenshot 2023-10-17 133926

And my component is now just empty when trying to add it to my block list.

image

I am a newbie so I might be missing something. Any help would be much appreciated!

Object Reference not set to an instance of an object.

Which Umbraco.Community.BlockPreview version are you using?

1.8.4

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

13.2

Bug summary

When viewing the block preview in Umbraco - all blocks are returning
Something went wrong rendering a preview
Object Reference not set to an instance of an object.

Front end - blocks render fine - no null exception.

When we step through - the Model itself is null on the backend preview.

Steps to reproduce

Umbraco 13.2 & latest blockpreview

Expected result / actual result

No response

Question: Umbraco 14 support

Feature summary

Hi,

I am new to this project and I am really impressed. But I have a couple of questions before making the final decision to use this great project or go down the custom written view route.

  1. Where do the maintainers/supporters of the project see the roadmap of the project going? e.g. any major new features/blockers in the future?
  2. How quickly does support for new Umbraco versions get added to this project?
  3. With the upcoming Umbraco 14 with Angular being dropped, do you see this being a hurdle/blocker for this project (My guess is that this project will make the transition to v14 easier)?

Many thanks

Additional details

No response

Umbraco 13.2.0. Error with empty RTEs

I get this error with Umbraco.Community.BlockPreview 1.8.1 and Umbraco.CMS 13.2.0 on empty RTE-properties.

It works just fine with Umbraco.Community.BlockPreview 1.8.0 and Umbraco.CMS 13.1.0

System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Community.BlockPreview.Services.BackOfficeListPreviewService.GetMarkupForBlock(IPublishedContent page, BlockValue blockValue, String blockEditorAlias, ControllerContext controllerContext, String culture)
at Umbraco.Community.BlockPreview.Controllers.BlockPreviewApiController.PreviewMarkup(BlockValue data, Int32 pageId, String blockEditorAlias, Boolean isGrid, String culture)

image

Live editing causing flickering

Which Umbraco.Community.BlockPreview version are you using?

1.8.4

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

13.2.2

Bug summary

When editing block with live editing enabled it will cause flickering of editor in background.

Steps to reproduce

Add few blocks to block grid
modify one (best example when rte is in) and see editor in background is flickering

Expected result / actual result

Editors post loading are not flickering but updating with required changes.

Two Column Layout error "Something went wrong rendering a preview"

I created a new empty project to try the BlockPreview. These are my steps:

  1. Created a new Umbraco 10.4 solution. (Also get the same error with 11.2).
  2. Added BlockPreview 1.1.1 via nuget
  3. Created a new Data Type named Content Block Grid.
  4. Within Content Block Grid, click button to create Demo Blocks. That added 4 new Document Types.
  5. Created a new Document Type named Web Page with a single data type, Content Block Grid, named Page Content. Set allow as Root.
  6. Created a new Web Page named Home and added the Two Column Layout to the Page Content.
  7. Updated the umbBlockGridDemoTwoColumnLayoutBlock.cshtml view (located in \Views\Partials\blockgrid\Components) from Html.GetBlockGridItemAreasHtmlAsync(Model) to Html.GetPreviewBlockGridItemAreasHtmlAsync(Model). Both produce the same error.

When editing the Home page in the back office the Two Column Layout displays the message "Something went wrong rendering a preview".

The blocks Headline, Image and Rich Text display without any issues. Am I missing something?

Error rendering preview for block "Value cannot be null. (Parameter 'name')"

After succesfull install and build i get the following error when viewing a page in the backoffice, with a block grid item
Skærmbillede 2023-05-23 kl  09 53 07

Error rendering preview for block 
System.ArgumentNullException: Value cannot be null. (Parameter 'name')
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at Umbraco.Community.BlockPreview.Services.BackOfficePreviewService.SetCulture(String culture)
   at Umbraco.Community.BlockPreview.Services.BackOfficeGridPreviewService.GetMarkupForBlock(BlockValue blockValue, ControllerContext controllerContext, String culture)
   at Umbraco.Community.BlockPreview.Controllers.BlockPreviewApiController.PreviewMarkup(BlockValue data, Int32 pageId, Boolean isGrid, String culture)

I have set the custom view as described
Skærmbillede 2023-05-23 kl  09 42 13

I have set a culture as well (as a desperate attempt :))
Skærmbillede 2023-05-23 kl  09 46 00

Error 404 on assets.js when running Umbraco 14 + Block Preview on Ubuntu 24.04

Which Umbraco.Community.BlockPreview version are you using?

2.0.2

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

14.2

Bug summary

My current setup:
Ubuntu 24.04
VS Code 1.92.2
.NET 8.0.108
Umbraco 14.2

When trying to run my Umbraco website with Block Preview, in the back office I get a 404 error on /app_plugins/Community.BlockPreview/assets.js. This error does not appear in Windows (I quickly tests with a VM, didn't investigated much in Windows). I assume it might be caused by the case-sensivity of the Linux file system.

Steps to reproduce

Just login to the back office of an Umbraco website that uses Block Preview
Go to Content and select any content page that uses Block Preview
Open Code Inspector (F12 generally) in your browser. Check Console for error message.

Expected result / actual result

Block Preview should work properly in an Linux environment

Enhanced preview capability when creating a page using content templates

Feature summary

When creating a new page with a content template, it would be convenient to preview blocks without having to save the page initially.

Additional details

When utilizing a content template with sample content in a block grid to create a new page, you may encounter the alert: "Cannot create a preview: the page must be saved before a preview can be created.". Its purpose is to inform you that although there is sample content within the block grid, it won't be visible on the CMS until you save the page (publishing is not necessary, just saving is sufficient). This is the designed behavior for the BlockPreview component.

It would be advantageous to enable previewing blocks without having to save the page initially.

image

Problems previewing nested block grids in v13

Hi,

Firstly, thanks for the excellent package. It's been a massive help.

We have a site which has some block grids nested in a block grid. We're using this package to give editors a friendlier editing experience in the back office whereby they can see what they are changing. When running the site on Umbraco 12 both the front end and back office are rendering fine.

After upgrading the site to v13 the front end is rendering fine, but nothing is rendering in the back office. Having dug into it a little I found that the models being passed into the component views were null.

As the front end is rendering fine I suspect that it's a problem with this package, but I may be wrong on that. I'm not sure if they maybe changed the grid data format in v13.

I also tried running the test sites associated with the package. Again the v12 site was working fine, but when previewing the homepage of the v13 site all of the RTE blocks are displaying [Object object] rather than the RTE contents.

I've attached a minimal site that demos the issue. If you run the site and visit the homepage you'll see the quick links being output. If you however try and edit the homepage in the backoffice you'll see there is a blank space where the quick links should be output. I've reused the login details from the packages test sites for my test site.

block-preview-test.zip

I'd be grateful if you could have a look into this please.

Thanks

Richard

Previews not working after updating to 1.8.3

Which Umbraco.Community.BlockPreview version are you using?

1.8.3

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

13.2.2

Bug summary

After updating from 1.8.2 to 1.8.3, the block list previews have stopped working.
image

Downgrading back to 1.8.2 fixes the issue, and the previews render as expected.

There are no errors in the browser console, or the Umbraco log, but I can see that the preview markup API response is empty:
image

Whereas on 1.8.2, the response looks like this:
image

Steps to reproduce

  • Update from 1.8.2 to 1.8.3

I haven't tried reproducing this on a fresh install yet, will update when I do.

Expected result / actual result

Previews should render.

Nested elements are not rendered when using preview helpers.

I spend some time debugging our solution to notice this bit of docs is kinda incorrect: https://github.com/rickbutterfield/Umbraco.Community.BlockPreview#grid-specific-setup
If you replace all block rendering methods with preview ones, you will have no render of nested elements.

So I played around and noticed, this when I set:

  • Default grid view to use GetPreviewBlockGridItemsHtmlAsync
  • area view to use GetBlockGridItemsHtmlAsync
  • areas view to use GetBlockGridItemAreaHtmlAsync

is only case when i get all preview render correctly.

So based on my observation, it doesnt work if you use Preview Methods everywhere, but it works perfectly when you use the Preview method on Root view for current preview.

Variants not updating content

When outputting culture specific content (currency format, dictionary values) inside the blocks Razor views,
this does not seem to apply the variant's culture.

Missing "Add content button"

Which Umbraco.Community.BlockPreview version are you using?

1.8.4

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

13.4.1

Bug summary

When adding content to a page, adding a layout produces an outlined box when moused over, but no "Add content" button within it. It is therefore impossible to create content within a layout.

When it "Sort mode" it is impossible to drag a content item into a layout.

Steps to reproduce

Create a single column layout block and an RTE block as per Umbraco docs.

Add the BlockGrid containing the new blocks to a page's docType.

Ensure the Grid-specific setup instructions are carried out.

Ensure the BlockGrid CSS is attached to the site's master template.

In the Content tree, open the page with the BlockGrid and add the single column layout. Then attempt to add an RTE block, or anything else inside the single column layout.

Add an RTE block underneath the layout, put the property editor into "Sort mode" and attempt to drag the RTE block into the single column layout.

Expected result / actual result

Expected result would be to see an "Add content" button inside the single column layout on mousover, and to be able to add blocks within it and rearrange as normal.

Actual result, no "Add content" button available and impossible to drag blocks into the layout in "Sort mode".

I should point out, just in case there's a typo in the code, that I'm developing on Linux Mint.

undefined error in controller

On Umbraco v12.1.2 with the latest release:

I've installed and configured some of the Blocks as detailed in the readme, and when I view a content node in the Backoffice I get an undefined error on the following line in the controller (line 22):

TypeError: Cannot read properties of undefined (reading 'model')
    at Object.<anonymous> (block-preview.controller.js?d=638293026850000000:22:113)
    at Object.invoke (angular.js:5208:16)
    at S.instance (angular.js:11814:24)
    at p (angular.js:10627:33)
    at g (angular.js:9942:13)
    at angular.js:9807:30
    at Object.link (angular.js:29993:9)
    at angular.js:1391:15
    at Ca (angular.js:11376:9)
    at p (angular.js:10695:11) '<div class="umb-block-list__block--view ng-scope" ng-include="model.view">'

The line throwing the error is this:

            // There must be a better way to do this...
            $scope.blockEditorAlias = $scope.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.vm.model.editor;

I don't think there's anything special about this block, it's not nested in anything either. The last $parent is an object, but the vm property isn't.

Edit Blocks in Areas opens both Blocks

Hi @rickbutterfield, first I want to highlight fantastic work!

I want to let you know that I experience an issue, which should be relatively easy to fix.

When I click a Block that is placed within a Block Area, when it opens both the clicked Block and the parent Blocks.
This is caused by the click event propagating, I think the immediate fix would be to add a ng-click="$event.stopPropagation()" on your Area slots.

As well it would be nice to support the Single Area Rendering:
@await Html.GetBlockGridItemAreaHtmlAsync(Model, "myAreaAlias")

It was introduced relatively late and I'm not sure if we have it documented, sorry for that.

It is used for the inspiration block Partial View in the example website project:
https://github.com/umbraco/Umbraco.BlockGrid.Example.Website

Again thanks for the well-made package, leading the way for how this is done!

Error 404 on assets.js when running Umbraco 14 + Block Preview on Ubuntu 24.04

Which Umbraco.Community.BlockPreview version are you using?

2.0.2

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

14.2

Bug summary

My current setup:
Ubuntu 24.04
VS Code 1.92.2
.NET 8.0.108
Umbraco 14.2

When trying to run my Umbraco website with Block Preview, in the back office I get a 404 error on /app_plugins/Community.BlockPreview/assets.js. This error does not appear in Windows (I quickly tests with a VM, didn't investigated much in Windows). I assume it might be caused by the case-sensivity of the Linux file system.

Steps to reproduce

Just login to the back office of an Umbraco website that uses Block Preview
Go to Content and select any content page that uses Block Preview
Open Code Inspector (F12 generally) in your browser. Check Console for error message.

Expected result / actual result

Block Preview should work properly in an Linux environment

Previews missing after updating to 1.10.0

Which Umbraco.Community.BlockPreview version are you using?

1.10.0

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

13.4.1

Bug summary

After updating to v1.10.0, the block previews are no longer shown.
image

There are no errors in the browser's console, or the Umbraco log.

v1.9.1 works as expected:
image

The above screenshots are taken from a project that uses the Block List, but I have also observed the issue on a project that uses the Block Grid.

Steps to reproduce

  • Update to v1.10.0
  • Observe if the previews are still shown

Expected result / actual result

No response

RCL-ify the package

As per the opinionated package starter, convert the package to be a Razor Class Library as per some of the discussions on the PR:

So to explain why RCLs are awesome, I think one of the key takeways is that when you're working locally in Visual Studio or similar, the assets from the package is added to your project virtually. Meaning that aren't physically on disk inside your project - they are instead pulled virtually from the NuGet package and made to appear as if they were inside your project. For one, this makes it easier to work in packages and version control, since you don't have to commit the assets to your repo.

Change BackOfficePreviewService to use the Razor Engine to find the View

Instead of hardcoding the path for views to "/Views/Partials/blockgrid/Components/{contentAlias}.cshtml" or "/Views/Partials/blocklist/Components/{contentAlias}.cshtml", use the Razor Engine to find the view.

Changing line 120 in BackOfficePreviewService.cs:

string partialPath = _razorViewEngine.FindView(controllerContext, contentAlias, false).ViewName;

** I was going to create a pull request, but I was prompted to merge into a branch first and I wasn't sure how you wanted to work with pull requests.

Null exception for invariant content

Hi,

i just created a pull request #17 to fix a null exception that can be thrown by the code when working with invariant content where the language is not set on the variants language property, but we need to use the culture set on the node (or that part of the content tree).

I was not sure if I should have started this by creating an issue first. Anyways,I like your module and hope this change will help more people.

David

Update docs to cover V13 with no startup.cs

Feature summary

Currently the installation instructions are for older versions of Umbraco that had a startup.cs. Modern versions now conform to the Minimal Hosting Requirements protocol and so don't use a startup.cs. Could you please add instructions as to how to get it working on modern versions? We're not all C# ninjas capable of making the switch unaided ;)

Thanks.

Additional details

No response

Version 1.7 contains breaking changes

Can we get clarification of version schema here?
As based on number 1.7 I would assume there would be no breaking change between 1.6 and 1.7 😓

Multi-node Tree Picker property editor in Block List block causes duplicated block previews

Which Umbraco.Community.BlockPreview version are you using?

1.10.3

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

13.4.1

Bug summary

When an element type (block) within a Block List contains a Multi-Node Tree Picker property editor, the preview of the first block in the block list is rendered for all other blocks. Even after removing the block containing the multi-node tree picker and re-saving the content, the block previews are still duplicated.

Steps to reproduce

Just a note, in testing this, I was using a clean install of Umbraco with the official Umbraco Starter Kit added to it.

  1. Create a Block List property editor containing several blocks (e.g. the Headline and Rich Text blocks that come in the demo set of blocks).
  2. Ensure the blocks use the block preview from the package (~/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html).
  3. Create a new block (element type) and add a Multi-node Tree Picker property editor to it that picks up to 1 item from a collection of content in the CMS.
    For example, a Blogpost block that contains a multi-node tree picker property editor to pick the blog post:
    image
    image
  4. Create a Razor view for the Blogpost block and save it in Views/Partials/blocklist/Components/.
    For example:
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockListItem>;
@using ContentModels = Umbraco13Demo.Web.Models.PublishedContent;
@{
    var blogpostBlock = (BlogpostBlock)Model.Content;

    var blogpost = blogpostBlock.Content as ContentModels.Blogpost;
}
<div class="component blogpost">
    <h4>@blogpost.Name</h4>
</div>
  1. Go to a CMS page that uses the Block List property editor and create an instance of 'Headline' block (or other block). Then add an instance of the block that uses the multi-node tree picker property editor (e.g. Blogpost block).

Expected result / actual result

Each block should render a preview using the HTML defined for that block's razor file. Instead, the first block's preview is duplicated for all other blocks.

image

Even after removing the block containing the multi-node tree picker, the previews still seem to be duplicated.

image

IMPORTANT NOTE: This bug does not occur in a Block Grid property editor.

Build error after installing

I'm not sure if this is the right place, but here goes

when i add AddBlockPreview() to the Startup.cs file, before AddWebsite(), as stated in the docs, i get the following error on build.

error CS1061: 'IUmbracoBuilder' does not contain a definition for 'AddBlockPreview' and no accessible extension method 'AddBlockPreview' accepting a first argument of type 'IUmbracoBuilder' could be found (are you missing a using directive or an assembly reference?)

Im running Umbraco 10.5.1. and blockpreview 1.2.1 in VSCode on Mac

Angular errors and blocks missing (Umb 10.4.0)

Hey Rick!

I've followed your readme and my blocks have completely dissapeared with a ton of angularjs errors in the console.

This is using the Block List Editor on Umbraco 10.4.0

Before

image

After

image

I also cannot see block-[grid|list]-preview.html only block-preview.html

image

This is how I have configured the blocks:

image

And this is the error in the console:

image

Any help figuring this out would be amazing!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.