November Happy Hour will be moved to Thursday December 5th.
Hi,
Is it possible to create a custom view for on-page editing of images (and other media files) in the same way as it is for blocks?
eg.
[TemplateDescriptor(Inherited = true, Tags = new [] { RenderingTags.Preview }, TemplateTypeCategory = TemplateTypeCategories.MvcController)] public class PreviewBlockController : ActionControllerBase, IRenderTemplate { public ActionResult Index(BlockData currentBlock) { return View(currentBlock); } }
Iv' tried but nothing is rendered.
/Anders
Hi,
Is it possible to create a custom view for on-page editing of images (and other media files) in the same way as it is for blocks?
eg.
[TemplateDescriptor(Inherited = true,
Tags = new [] { RenderingTags.Preview },
TemplateTypeCategory = TemplateTypeCategories.MvcController)]
public class PreviewBlockController : ActionControllerBase, IRenderTemplate
{
public ActionResult Index(BlockData currentBlock)
{
return View(currentBlock);
}
}
Iv' tried but nothing is rendered.
/Anders