Matthew Dresser
Matthew Dresser

Reputation: 11442

Add a custom dropdown list in Sitecore PageEditor

How can a custom dropdown list be added to the page editor in Sitecore?

I understand that you can create individual buttons in the toolbar by creating items under /sitecore/content/Applications/WebEdit/Custom Experience Buttons in the core DB using the WebEdit Button template and I understand that setting a button's Type field to Common will make it appear under the 'More' dropdown, but what I want is to create my own dropdown button with a unique list of buttons (corresponding to items in the master DB).

enter image description here

I've looked at the various processors in the <getChromeData> pipeline using dotPeek and suspect I will have to create a new processor in this pipeline, but I cannot find the relevant code which produces the 'More' dropdown list from the image.

Upvotes: 0

Views: 902

Answers (1)

jammykam
jammykam

Reputation: 17000

Create a button of template type /sitecore/templates/System/WebEdit/WebEdit Button and set Type field to Common from the droplist. The button should then appear in the dropdown.

Type field

Custom Experience Buttons

Upvotes: 2

Related Questions