Apr 13, 2012 at 4:26 PM
Edited Apr 13, 2012 at 4:32 PM
"Editor method - for getting a shape (Views\EditorTemplates\template.cshtm) to display on the dashboard"
Yes, you should place the template into the EditorTemplates folder if you intend to create editor shapes the common way (how it's also in the tutorial). Now the editor of the content item could be displayed not just on the dashboard but from a custom controller
too, as you've also used.
"If I want to edit stuff I need to define a Routes.cs and MyController.cs."
You only need to define routes if you're not satisfied with the standard one, e.g. MyModule/MyControllersName/MyAction.
"Within MyController I can get content to edit like so:"
This is correct.
"but this would get me a shape of the whole page. For instance if the id=1 I'm getting site configuration shape."
BuildEditor() creates the editor (that means, the content of an editor form, without the <form></form> itself) for the whole content item (unless you've defined editor groups like it's with site settings and e.g. Media settings). You can't simply
build an editor for only one part, if that's what you'd like to do, but e.g. you could hide all the other editor shapes from the Placement.info (by using a match for the url of the action) or attach you part's editor to a new group and build the editor shape
for only that group.