What is the alternative for sc:EditFrame in Sitecore MVC

1.8k Views Asked by At

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?

2

There are 2 best solutions below

3
Craig Taylor On BEST ANSWER

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.

1
Roland On

Just an FYI in Sitecore 8.2 there is support for edit frames:

@using Sitecore.Mvc.Extensions    

Then

@using(Html.EditFrame(...)) {...}