Adding publish item to the contextual menu of Sitecore

Posted 3 July 2017 12:00 AM by Vicent Galiana, Sitecore Solutions Architect @ ClearPeople

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!


Add your comment





intranet Modern SharePoint teamwork employee engagement digital workspace SharePoint JavaScript Windows Azure Digital Transformation staff satisfaction productivity Microsoft Teams Office 365 Yammer cms content management system agile GDPR Microsoft Graph collaboration Microsoft sharepoint 2016 upgrade migration SharePoint Online 2016 Tech Trends Digital Disruption Context marketing marketing SharePoint 2010 SharePoint 2013 TFS Git security kentico Analytics jquery QA Quality Assurance testing content management websites Sitecore sitecore marketplace sitecore module cloud Microsoft Cloud Storage digital strategy technical consulting sitecore modules Experience database Sitecore 7 Sitecore 8 support account management customer experience Data Storage cms integration front end front end development prototype Cloud Storage StorSimple Front-end Development Layout SharePoint 2013 colour palette UI design website design log viewer sitecore cms website Azure big data business-critical sharepoint accessibility android apple chrome clear people clearpeople debug emulator ios mobile testing opera resize adobe desktop flash ie10 internet explorer 10 metro windows 8 bcsp Advanced System Reporter reporting framework ControlMode form control master page placeholder publishing console SharePoint 2007 SharePoint error search search results search values software testing testing scenario audit content information architecture retention schedules PowerShell QuickLaunch scripts SharePoint server 2010 business solutions metalogix replication replicator storagepoint stena technet UK Technet picture library slideshow web part RTM released to manufacturing caml caml query MOSS 2007 query infopath