Tuesday 18 December 2018

Adding publish item to the contextual menu of Sitecore

Publish Operations and Messages.

This picture shows how each menu item is related to the corresponding message.



Customizing the Context Menu.

Switch to the Core Database and go to the "/Sitecore/content/Applications/Content Editor/Context Menues/Default" folder and create a new Menu item  (Template Path : /Sitecore/templates/System/Menus/Menu item). You can re-order existing menu items to your liking. For your new menu item, choose a display name (in my case, its "Publish Menu"), an icon and finally the message (in my case, I've used item: publish(id=$Target)). See the below image.



Now, to avoid disappointments, in the scenario where a user may think that they can publish, to later found out they can’t, we have to apply security:
  • A select item which is created right now (Ex: Publish menu)
  • Click on Security navigation Bar.
  • Click on the Assign inside security section and its open a popup.
  • Add role "Sitecore client Publishing" and "Sitecore client Users".
  • Click ok button.

All you now have to do is to switch back to the master base and view the result. Simple !!! :) You should get something like this:


No comments:

Post a Comment

Sitecore Publishing Service 7.0 Installation Guide

  About the Publishing Service module The Publishing Service module is an optional replacement for the existing Sitecore publishing methods....