SiteEdit 2012 (or actually the official name for it is: User interface update
for SDL Tridion 2011 SP1, sometimes also mentioned as UI 2012) is the predecessor of Experience Manager (XPM in SDL Tridion 2013) and it basically is an extension on the CME.
So when extending it, you don't need its configuration file, but you specify inside your Editor extension that it targets both the CME and SiteEdit (in the extension configuration, it is still called SiteEdit). I've written a blog post about this, explaining the basics and added some sample code on SDL Tridion World.
In there you can see that I've targeted both the CME and SiteEdit for my extension. Below is a snipped of the Editor.config
file:
...
<extensions>
<ext:editorextensions>
<ext:editorextension target="CME">
...
<ext:extendedareas>
<ext:add>
<ext:extension assignid="FirstButton" name="Newest">
<ext:control>~/Controls/FirstButton.ascx</ext:control>
<ext:pagetype></ext:pagetype>
<ext:renderinblock>false</ext:renderinblock>
<ext:apply>
<ext:view name="TridionDashboard">
<ext:control id="MainDeckPageButtons" />
</ext:view>
</ext:apply>
</ext:extension>
</ext:add>
</ext:extendedareas>
...
</ext:editorextension>
<ext:editorextension target="SiteEdit">
...
<ext:extendedareas>
<ext:add>
<ext:extension assignid="FirstButton" name="Newest">
<ext:control>~/Controls/FirstButton.ascx</ext:control>
<ext:pagetype></ext:pagetype>
<ext:renderinblock>false</ext:renderinblock>
<ext:apply>
<ext:view name="DashboardView">
<ext:control id="MainDeckPageButtons" />
</ext:view>
</ext:apply>
</ext:extension>
</ext:add>
</ext:extendedareas>
...
</ext:editorextension>
</ext:editorextensions>
...
</extensions>
...
So you see that I've basically added the same configuration for my example button twice, once targeting the CME and then targeting SiteEdit. But the is a slight difference in the view names. This example adds a button in the Dashboard page, which exists in both the CME and XPM view, but they are named differently (TridionDashboard
for the CME and DashboardView
in XPM).
To find the different view (and control) names, you will have to inspect the HTML of that view and see what unique IDs are given. Also you can check out the code of the existing views already on the server.
Just keep in mind the extension points might be completely different between the two views. As shown in my ECL Import extension, you might need to adopt a complete different approach when extending XPM, as the flow and view might differ. If that is not the case, then you should only have to worry about finding the right view and control.
Update
The ItemToolbar
in the ComponentView
for the CME is something specific for the CME. In XPM the Component is basically represented as a Component Presentation on the Page. There are several options you have available to add your specific buttons:
Just leave it where it is, and have your editors open the Component in Form view (that will load the CME view and thus show your custom button).
Add your button in the properties window for the Component, that will be the view: EditorView
and the control: PBComponentPropertyPanel
Add your button in the XPM ribbon toolbar and enable it only when a Component is selected. You can then simply apply it to <ext:view name="EditorView" />
and add it to one of the existing pages (tabs) and groups.