Creating a Publishing Context Menu Item in Sitecore Content Editor

by Aboo Bolaky 26. July 2009 07:58

The more I think about this, the more I realise that this should be a built-in feature in Sitecore : To have a publish option whenever you right-click on any sitecore item.

Publishing Messages in Sitecore 

Fortunately, Sitecore is flexible enough. By doing a few customizations in the Core database, you can get a decent result. Before we tackle the WYSIWYG actions, we need to know the commands that Sitecore understands in order to launch the appropriate Publish window.

item:publish(id=$Target)

This is basically doing an Item publish. You have the option of publishing sub items as well. Once the publish is finished, you can see the publishing statistics.

system:publish

This brings up the publish window. This is the default screen when you hit Publish -> Publish Site (from the Ribbon)

 

item:publishnow

After having done this publish, you are not able to see the publishing stats..

  

Publish Operations and Messages

To summarize what's being said earlier, this picture shows how each menu item is related to the corresponding message.

Customizing the Context Menu

Switch to the Core Database and browse 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 Item"), an icon and finally the message (in my case, I've used item:publish(id=$Target)). All you now have to do is to switch back to the master base and view the result. Simple !!! :)

 

Tags:

Sitecore

Comments

5/17/2010 5:04:56 PM #

Christian Louboutin

Technicality side, your post is easy to understand. At least you've done the right thing to let them know the problem was. Thanks for sharing

Christian Louboutin People's Republic of China |

5/24/2010 11:37:12 AM #

cctv camera

I enjoy your blog posts,Thanks for posting this informative article.

cctv camera Canada |

5/24/2010 11:38:13 AM #

cctv camera systems

The blogsphere changes rapidly, and change creates opportunity.Thank you for  this ob post.

cctv camera systems United States |

11/7/2011 6:37:34 PM #

Marrakech

I equal this website its a chief calm ! Cheerful I detected this on google. “Observe your enemies, for they principal discovery absent your failings.” by Antisthenes.

Marrakech France |

11/13/2011 6:15:29 PM #

Marrakech

Enjoyed reading through this, very good stuff, thanks .

Marrakech France |

Tag cloud

Flash Player 9 required.

About Me

I wish I could write something here..
//TODO: ElaborateMe