When is it possible to edit a field inline with Experience Editor if the component is developed using Sitecore MVC?
When is it possible to edit a field inline with Experience Editor if the component is developed using Sitecore MVC?
When using Sitecore MVC, to make a field editable in the Experience Editor, the Field() helper method must be used to render the field. This method ensures the field is wrapped with the necessary markers that allow it to be edited inline within the Experience Editor.
The answer is C
C is the answer as per the below blog. https://marcotanainsights.wordpress.com/2017/10/05/tips-on-using-html-sitecore-fields-parameters-object/
Main Point : Developed using Sitecore MVC. Hence @Html.Sitecore().Field("Field Name", new { DisableWebEdit = true }) Hence answer is C
you just use Html.Sitecore().Field() and it is editable in experience editor
B correct
The answer is B. When the field is marked as inline editable in its definition. To make a field editable in the Experience Editor, you need to mark it as inline editable in its definition. This can be done by setting the InlineEditable attribute to true on the field definition item