AI OnAI Off
You can register your partial views with episerver by implementing interface EPiServer.Web.Mvc.IViewTemplateModelRegistrator. The implementation can look something like:
viewTemplateModelRegistrator.Add(typeof(PageData),
new DataAbstraction.TemplateModel()
{
Name = "PageTeaser",
Description = "Displays a teaser of a page.",
Path = "~/Views/Shared/PageTeaser.cshtml",
Inherited = true
}
);
the above code registers a partial view for the modelclass PageData (in your case it should be your block model). Property Path is only nessecary if you do not follow naming conventions (so in case above Path could have been omitted).
I'm starting to get a handle on 7 with MVC. Using the guide here (http://tedgustaf.com/blog/2012/11/conventions-for-episerver-7-mvc-views/), I was able to set my directories up where I can keep all my Views in one folder if I want and not have use the default View/index.cshtml setup. It works fine for views, but partial views is another story. I have a path to ~/Views/Blocks/MyBlock.cshtml and it is ignored. If I put the same file in the ~/Views/Shared directory, CMS picks it up. Am I missing something or is there another way to say BlockType use the Partial View located here?