Display Public URL and Published State in Sitecore 8.1 Ribbon

We ran across a helpful blog post by Kevin Buckley explaining how to display the published state of an item in the Sitecore ribbon using a ribbon panel. This ribbon panel displays the version published by language if the item has been published. If the items is not published, it indicates that. We implemented this and have found it to be very useful for our content administrators.

We expanded upon the code provided in the post. In addition to displaying the published state, we also added the public facing URL to the ribbon. This allows content administrators to see the published state as well as the public URL to the item. The URL not only benefits content items, but also Media Items. Once you upload a media item you can get the public URL to the Media Item, without having to include it on a page. We also updated the code to work with the new look and feel in Sitecore 8.1.

Here is the updated code:

To configure the ribbon panel, perform the following steps:

  1. Switch to the Core database
  2. Navigate to: /sitecore/content/Applications/Content Editor/Ribbons/Chunks/Publish
  3. Insert a new item based on the template: /sitecore/templates/System/Ribbon/Panel
  4. Set the Type to the type of the class.

I would like to thank Kevin Buckley, the author of for the idea and code.