Search code examples
sitecoresitecore8sitecore-mvcpage-editor

What is the alternative for sc:EditFrame in Sitecore MVC


The project I'm working on is a new Sitecore 8 site build using MVC and with a demand for page-editor support. The simple fields are being addressed with the FieldRenderer.render() method, but there are also some droplink and multilist fields that need to be available in page editor. In webforms you could use the sc:editframe control for that, but how can I get the same functionality while using Sitecore MVC?


Solution

  • If not already, I highly recommend using GlassMapper to map your Sitecoce object to strongly typed objects in your code.

    With Glass, you can then use the BeginEditFrame concept to replace the sc:EditFrame functionality of WebForms.

    To take it a step further, look to implement edit frame buttons (this link is not Sitecore 8 specific, but the method to implement edit frame buttons is the same) in the core database to allow a very-friendly Experience Editor experience.