volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Custom Preview for editing Images

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

#115383
Jan 14, 2015 11:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.