我有一個圖像組件,我需要在Sitecore頁面編輯器上禁用它的編輯功能區,以便作者無法編輯/更改圖像。如何在頁面編輯器上禁用圖像組件的編輯?
在代碼:
<sc:Image Field="Image" ID="Image1" runat="server">
我已經試過DisableWebEditing="true"
,但沒有用的!
代碼也試過這背後
if (Sitecore.Context.PageMode.IsPageEditor)
{
Image1.DisableWebEditing = true;
}`
如何禁用圖像編輯?
您正在使用哪個版本的Sitecore? – jammykam