Posts

Showing posts with the label @Html.Glass()

Sitecore Glass Mapper Editable fields.

Image
   Introduction: In our previous post we had seen how we can make  make Fields Editable in Experience Editor using " @Html.Sitecore().Fields ". But usually as the project Grows in Size we tend to use some ORM to help us get mapping task out of the box. Thus, in the section we will be Discussing how we can make the Fields Editable in Experience Editor while using Glass mapper. Implementation: We will continue to update our previous Application. The application already contains a Controller Rendering, that will be using Sitecore Helpers to make field Editable. Again as I said in previous blog, the change is right from Architecture point. Depending on how we want to target the View (Sitecore, Glass Mapper, or plain) will decide how to write the Model, Business logic, Data Fetching logic to showing view. Thus, here we will not manipulate the existing logic. We will create another Controller Rendering that will be using Glass mapper to make fields Editable in Experience Editor...