Enabling Blocks by Default in Episerver Commerce

casper.rasmussen/ July 22, 2017/ Episerver Commerce/ 2 comments

Using Episerver Blocks, to e.g. support re-usable components, in Episerver Commerce content is a very common scenario. Out of the box, that is indeed also possible. It only requires you to register a ContentReference driven property type – e.g. ContentReference, ContentArea or List – for it to be supported in the authoring interface.
After you’ve done that, you will probably realize that the “Blocks” asset panel in the right hand side pane by default is unavailable to your editors, requiring these to manually go in an add the “Blocks” gadget to their view.

How to enable the “Blocks” panel, by default, in Episerver’s Catalog view.

Enabling “Blocks”, by default, in Episerver’s Catalog is very easy. Since it’s not documented anywhere, it’s absolutely worth writing a simply blog post about!

You’ll only need to create a single class, which through Episerver’s component system makes¬†the “Blocks” gadget available for both existing and new content editors.

 

 

2 Comments

  1. you get this to work in the marketing view?

    1. Hi Mark.

      Absolutely – you can do this to enable it in the Marketing view.

      http://fellow.aagaardrasmussen.dk/2017/12/11/enable-use-of-blocks-in-episerver-commerces-marketing-view/

      Casper Aagaard Rasmussen

Leave a Comment

Your email address will not be published. Required fields are marked *

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
*
*