Supporting Inline Edits

Supporting Inline Edits

Inline Edits

The FieldRenderer control generates inline editing controls for the Page Editor and will render appropriate html code for some data types instead of just raw values. The following fieldtypes can be displayed by the fieldrenderer...

  • Single-Line Text
  • Multi-Line Text
  • Integer
  • Number
  • Image
  • Date
  • Datetime
  • General Link
  • Rich Text

C# Web Control Code

this.Controls.Add(new LiteralControl(FieldRenderer.Render(Sitecore.Context.Item, "title")));


Sitecore.Web.UI.WebControls.FieldRenderer titledisplay = new Sitecore.Web.UI.WebControls.FieldRenderer();

if (titledisplay != null)


      titledisplay.FieldName = "title";