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.

2 Answers 2

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.

3
  • 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 Dec 2, 2016 at 18:29
  • Updated with new path.. (left the old one to keep your comment useful)
    – Gatogordo
    Dec 2, 2016 at 18:34
  • Wow...I have no clue how I missed that... Dec 2, 2016 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

1
  • Of course, it does! :) I should have known! Dec 3, 2016 at 23:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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