Custom Experience Editor Buttons

Dear Readers,

We as Sitecore Developers have always been very keen on making our End User’s life easy by creating components and adding in options. Our focus, always remains on ease of the users of the system. We all know that usually we use Field Renderer while using the Sitecore API or Editable while using Glass Mapper for simple Text types and Sitecore takes care of the rest of the things for us. Also, for complex types like Multilist, Treelist, we use EditFrames for the Experience Editor , where a field would become Editable in the Page Editor, when put in EditFrames. We have an additional option available now, for the ease of our Content Author team members and very simple to add/integrate in our Sitecore System. This is Custom Experience Editor Buttons.

The best part, we can add the Custom Experience Editor Buttons, without any code! Isn’t it cool?

Without any further adieu, lets get into the details of how is it done.

  1. Open Sitecore Desktop from the Launchpad and Select the Core Database.
  2. Next, go to the Sitecore location: /sitecore/content/Applications/WebEdit/Custom Experience Buttons
  3. Here we can create a new Field Editor Button. For that, right click on the Custom Experience Buttons and select Insert -> Insert from Template.
  4. In the dialog that appears, select the template /System/WebEdit/Field Editor Button Let me name it My Component
  5. All the fields that appear in this item, are worth Understanding – check the screenshot below to know the details
  6. Lets add the following details to the fields: 
  7. Next, we move to the Master Database and go to the /sitecore/layout/Renderings/Sample/Sample Rendering which is available on the default Sitecore Home item in Experience editor. Here we will find a field on the rendering, called Experience Editor Buttons. Lets select the Button that we just created in the multilist. 
  8. Now, when we open the Experience Editor for an item where this rendering is added – say Home item for our example we will be able to see how the button looks and what does it provides as an option. 
  9. On clicking the button, we will be able to see the fields we added while creating the Custom Editor Button. 

 

Hope you found this helpful.

Happy Sitecoring! 🙂

Advertisements

One thought on “Custom Experience Editor Buttons

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s