Reputation: 14088
I need to render some control only in normal mode,
I mean when Page Editor show page control should contain only real values not HTML code what allows to edit data.
@Html.Sitecore().Rendering(Model.MetaRenderingId)
what parameters I need to use for it ?
Upvotes: 3
Views: 216
Reputation: 652
You should be able to simply disable the webedit functionality by using the DisableWebEdit property of an anonymous object.
@Html.Sitecore().Rendering(Model.MetaRenderingId, new { DisableWebEdit = true })}
Upvotes: 1