Views: 536
Number of votes: 9
Average rating:

Inline Block Publishing - create new blocks without leaving current context

We added a new major improvement to the block publishing that I would like to share with you.

Previously, the editors were able to only inline edit existing blocks. However, whenever a new block was needed then they still had to use the default form, that caused the current content context to switch.

It was quite annoying especially in nested block scenarios where you had several levels of nesting i.e. Bootstrap Row Blocks containing Content Blocks.

With https://nuget.episerver.com/package/?id=EPiServer.Labs.BlockEnhancements&v=0.5.0 it is now possible to create new blocks using the same inline form, without the need to ever leave the current context.

The best part is that we support nesting. As many levels as needed. And it works both in On-Page Edit (OPE) and in regular Forms view.

After upgrading to v0.5 the "Create a new block" link will no longer open a big content type selector and switch editor's context to the newly created content item.

Instead a simple dialog will be presented:

After choosing the content type the editor will see the inline edit form straight away. All properties will be included (both required and optional):

Please note that the new commands are available both from the Forms View and the On-Page Edit.

Please take a look how it all works:

Nov 06, 2019

Allan Thraen
(By Allan Thraen, 11/6/2019 10:56:09 AM)

This is an incredibly cool project!!!

Joshua Folkerts
(By Joshua Folkerts, 11/6/2019 2:18:46 PM)

I like this alot!  I mean alot!!!!!! I guess the editors will too :)  Nice work!

Benjamin Dean
(By Benjamin Dean, 11/6/2019 2:21:00 PM)

This project keeps getting better week after week, this is a really nice enhancement!

In general context switching is one of the worst parts of the user interface, adding this will make a lot of people happy

Erik Henningson
(By Erik Henningson, 11/6/2019 2:38:49 PM)

This is really nice! Are there any plans to include this in the core product?

Manoj Kumawat
(By Manoj Kumawat, 11/6/2019 3:09:26 PM)

That's super cool!!

Ravindra S. Rathore
(By Ravindra S. Rathore, 11/6/2019 9:53:53 PM)

Nice feature 👍👍

That's why we love Epi

linuse
(By linuse, 11/10/2019 10:04:43 AM)

Very nice work Bartosz - it's fine to see that the intention for how most blocks block be used when the UI for Episerver 7+ was designed - i. e. local blocks with inline edit - has finally been realised. I really like how new blocks automatically are created in the local folder for the current object. One small glitch that I noticed was that when I have a lot of properties on a block, the dialog becomes higher than my screen and the save/cancel buttons are then invisible before I move the dialog on the screen. But all in all - a very nice and welcome addition!

Bartosz Sekula
(By Bartosz Sekula, 11/10/2019 8:49:27 PM)

Thank you very much.

Linus, is this the issue that you are referring to? https://github.com/episerver/EPiServer.Labs.BlockEnhancements/issues/23

Nicola Ayan
(By Nicola Ayan, 11/11/2019 12:56:46 AM)

Very nice! :)

Tien Quach
(By Tien Quach, 11/11/2019 3:18:18 AM)

Been looking for this feature for a long time. Nice work.

linuse
(By linuse, 11/11/2019 8:02:56 AM)

Yes Bartosz - that seems to be the same issues that I've been experiencing.

Bartosz Sekula
(By Bartosz Sekula, 11/13/2019 10:59:21 PM)

Linus, that issue has been resolved in https://nuget.episerver.com/package/?id=EPiServer.Labs.BlockEnhancements&v=0.5.1

Thanks for quick feedback! :)

Henning Sjørbotten
(By Henning Sjørbotten, 11/15/2019 12:48:21 PM)

This is a great feature, for editors with publishing rights. For other editors this feature is just in the way of everything else. 

The only option in the new block window is Publish. If you do not have publish rights, "Publish" remain the only option. You cannot use this new feature, and must then click this new block-windows away. Then the only thing you can do is to go to normal block-editing instead. There you can submit the block in "Ready to publish"-mode.

This Block Enhancement-functionality should only be visible for editors that can use it (for now that is Publishers). Best would be if user do not have publishing rights, the Ready to publish-option would be available instead.

Bartosz Sekula
(By Bartosz Sekula, 11/15/2019 9:51:42 PM)

You are correct Henning. It will be solved soon.

Please login to comment.