How many times have you right-click on an item to publish it to remember that this option is not available? How annoying it is for you, having to go to "Publish" tab, click on publish item, etc... I got fed up while working on LawNow Upgrade and decided to add it. It's a 5 min task and saves "hours" of frustration...

Change to the core database
Go to: /sitecore/content/Applications/Content Editor/Context Menues/Default
Duplicate the item Insert (Or any other of template "/sitecore/templates/System/Menus/Menu item". I recommend copying, as this template is not in the "insert options".
Rename the new item as "Publish"
Change the field display name to "Publish"
Set the Icon field to "Office/16x16/publish.png"
Set the Message field to: item:publish(id=$Target)
Change the Item icon to "Office/16x16/publish.png"

Now, to avoid disappointments, in scenario where user may think that they can publish, to later found out they can’t, we have to apply security:

Adding publish to the contextual menu of Sitecore 2

With this settings, only user with the role “Sitecore client Publishing” can see this button. This is the same security as applied to the default button.

To be fair, I have to give the credits to Benjamin Vangansewinkel and his post, who gave me the idea. I just added the icons to make it look nicer...

That's it, now you should get something like this:

Sitecore adding publish

Now run to show it to your experienced Sitecore users and watch their faces of joy!

Author bio

Vicent Galiana
Vicent Galiana
Solutions Architect
Putting blocks together to make things easier, creating those missing clever parts which make it possible. That's my passion, that's my hobby, that's my job. It's about keeping up to date with current tools, and figuring out how to glue them together to solve client's challenges.


comments powered by Disqus

Related Articles

Sign up to our ClearThought newsletter

Get inspired and learn something new by subscribing to our FREE newsletter. It’s full of ClearPeople's thought-leadership whitepapers, blogs, events, and much more. We promise to not use your email for spam.

Closing this message and/or accessing our website tells us you are happy to receive all cookies on the ClearPeople website.
However, if you would like to, you can change your cookies settings at any time.