Arbejdsglæde
Arbejdsglæde

Reputation: 14088

How to ignore Page Editor values at Html.Sitecore().Rendering

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

Answers (1)

Markus
Markus

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

Related Questions