As you did not specify the Sitecore version I will assume that you use Sitecore.NET 9.0.2 (rev. 180604)
or your version uses a similar approach.
- Open
core
database
- Find following item
/sitecore/content/Applications/WebEdit/Ribbons/WebEdit/Page Editor/Edit/Insert
- In
Renderings
field there is a button definition, where you will find source of assets (js) and ID
of the pipeline that will be called once you click the button in EE. Pipeline ID is {DF6345DC-ACC8-43B4-BC08-DFBF29906505}
- Find
{DF6345DC-ACC8-43B4-BC08-DFBF29906505}
item in core
database.
Now you can extend pipeline by adding new processors or overwriting existing processors if needed. Right now I can see two processors: openInsertItemDialog
and insert
.
Code is located here: site\sitecore\shell\client\Sitecore\ExperienceEditor\Pipelines\InsertItem\
Older versions (7.5 rev. 150130 >)
If you are using an older Sitecore version you might not find steps above applicable. Here are steps for older Sitecore version.
- Open
core
database
- Find following item
/sitecore/content/Applications/WebEdit/Ribbons/WebEdit/Page Editor/Edit/Insert
- In
Click
field there is a name of the command that will be executed when you click the button in EE (webedit:new
)
- Open config
http://site/sitecore/admin/ShowConfig.aspx
and find following string webedit:new
.
- Overwrite this command (search for something like this when you decompile source code (
SheerResponse.Eval("scNavigate(\"" + str + "\", 1)");
)