2

When you right-click in the left gutter of the Content Tree in the Content Editor, a really handy context menu appears with some "command shortcuts" (for lack of a better term).

enter image description here

Does anyone know where in the core database the "buttons" for this context menu are controlled? Bonus points to anyone who can also tell me the real name for this thing, because I can't seem to find it anywhere.

3

You can add stuff here: /sitecore/content/Applications/Content Editor/Context Menues/Default and seeing the path I would assume it is called a "Context Menu".

After your command and screenshot: you'll need to go here in the core database:

/sitecore/content/Applications/Content Editor/Gutters

Apparently they are just called "Gutters". All existing ones have that name also in their namespace.

  • That's not it - the buttons in there are totally different. I just uploaded a screenshot to help point to the "context menu" thingy that I am referring to – Zachary Kniebel Dec 2 '16 at 18:29
  • Updated with new path.. (left the old one to keep your comment useful) – Gatogordo Dec 2 '16 at 18:34
  • Wow...I have no clue how I missed that... – Zachary Kniebel Dec 2 '16 at 18:37
2

Sitecore PowerShell Extensions provides the ability to add commands to the "Gutter". Here is an excerpt from the book.

The Gutter integration allows for full flexibility of adding a gutter element.

  1. Begin by adding a new script to the Gutters library.
  2. Edit the script to create a new instance of Sitecore.Shell.Applications.ContentEditor.Gutters.GutterIconDescriptor if the right conditions are met.
    • Set the Icon, Tooltip, and Click properties.
    • Return the gutter object
  3. Rebuild the gutter integration from within the ISE.
    • Settings tab
    • Integration chunk
    • Sync Library with Content Editor Gutter command

Note: Examples included in the following modules

  • Publishing Status Gutter

Publishing Status

  • Of course, it does! :) I should have known! – Zachary Kniebel Dec 3 '16 at 23:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.