November Happy Hour will be moved to Thursday December 5th.

Hiding properties in edit mode

Vote:
 

Hi,

I'm trying to hide a property in edit mode (depending where the pagetype is being created).  I've tried the following in the SDK, but get an error: “Error: The property {0}  is read-only”

http://sdk.episerver.com/library/cms5/html/P_EPiServer_Core_PropertyData_OwnerTab.htm

Thanks

#41592
Jul 14, 2010 16:21
Vote:
 

You can attach an event to EPiServer.UI.Edit.EditPanel.LoadedPage  and then hide a property by setting e.Page.Property["PropertyName"].DisplayEditUI = false;

/Erik

#41596
Jul 14, 2010 20:46
Vote:
 

Hi Daniel,
As Erik describes, this is quite simple to do, if you are doing it for a lot of properties for different page types, you can check out a plugin that I've built for managing this at http://thisisnothing.wordpress.com/2010/04/09/modify-the-built-in-episerver-properties/.

Cheers
Henrik

#41597
Jul 14, 2010 22:43
Vote:
 

Hi, works 100% attaching to event EPiServer.UI.Edit.EditPanel.LoadedPage

Thanks!

#41599
Jul 15, 2010 11:13
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.