I'm using a custom Sitecore SXA controller rendering for the first time with Visual Studio and I want to make the model fields in the .cshtml view file editable in Sitecore Experience editor. Is there a way to go about this? Referred to the following link for custom rendering in SXA

Simple SXA rendering

enter image description here

I tried the following method with the help of how to make a custom field to be editable from experience editor in sitecore 9.0.1; however it doesn't work.

enter image description here

Specification details:

Sitecore 10.2,
Visual Studio 2022

1 Answer 1


Did you tried to use EditFrame in your view like this ?

     using (Html.Sxa().BeginEditFrame(Html.Sitecore().CurrentRendering.DataSource, "Image Slider Empty", Model.IsControlEditable))

please find EditFrames documentation : https://doc.sitecore.com/xp/en/developers/91/sitecore-experience-manager/using-editframes.html

  • Thank you for the response. Yes I tried this the field content is getting selected in experience editor but I am unable to edit it. It gets highlighted as Page area and displays no workflow. Mar 21, 2022 at 6:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.