Exam NET Developer 10 All QuestionsBrowse all questions from this exam
Question 36

When is it possible to edit a field inline with Experience Editor if the component is developed using Sitecore MVC?

    Correct Answer: C

    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.

Discussion
AlexEthisysOption: C

The answer is C

ARUNKHADHRIOption: 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/

PRAVF9CYOption: C

Main Point : Developed using Sitecore MVC. Hence @Html.Sitecore().Field("Field Name", new { DisableWebEdit = true }) Hence answer is C

blacky_saOption: C

you just use Html.Sitecore().Field() and it is editable in experience editor

uma_foxOption: B

B correct

begaoOption: B

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