title: Sitecore 8 MVC : How to make the field editable in Page Editor
body: <p>I'm trying to make my Sitecore site compatible with page editor i.e. all the fields text, rich text editor, etc, should be able to be updated in Page Editor.</p>
  
  <p>So far I've modified the TDS T4 template which returns a <code>HTMLString</code> for each field like below:</p>
  
  <pre><code>public HtmlString HeroImageField(bool isEditable = true, string parameters = "")
  { 
      string renderParameter = GenerateRenderParameter(isEditable, parameters);
  
      return new HtmlString(Sitecore.Web.UI.WebControls.FieldRenderer.Render(
          Sitecore.Context.Database.GetItem(this.EntityId.ToString()), "Hero Image", renderParameter ));
  }
  </code></pre>
  
  <p>So, in view I just call <code>Model.HeroImage()</code></p>
  
  <p>Is there a better way to achieve above? Maybe Glass Mapper comes with out of box support for this (which I don't know).</p>