SaaS CMS has officially launched! Learn more now.

Hiding properties in edit mode


Because of the need of substituting some properties with new ones of different types in an production environment, I need to supress the old ones and hide them from the editor. This is pretty straight forward when loading existing pages by hooking up to the EPDataFactory.LoadedPage event in Global.asax.cs event and setting prop.OwnerTab = -1.

But to do this, the page object is required and this is not provided when a page is created. So when creating a new page, I'm not able to hide the old properties.

Any chance of using another technique to hide them?

Mar 28, 2008 16:04

What about the CreatedPage event?


Mar 29, 2008 21:01

I'm not sure what EPiServer Version you are using but what about the LoadedDefaultPageData event? This event is fired when creating new pages in EPiServer 4.


Mar 31, 2008 8:35

One thing I have done in the past is simply creating another tab that the editors don't have access to and move the properties there.

 Simple but it does the trick.



Mar 31, 2008 8:37

The CreatedPage event is not fired when episerver shows up the new page in edit mode, that is, before any save is performed. The LoadedDefaultPageData however will cut it.

Thanks all!


Mar 31, 2008 10:26
* 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.