Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
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.
/Mattias
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.
/Per
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!
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?