Make custom property always read the default value

Vote:
 

I have custom property where I set some default values for configuration purposes. When I create a new page these are read correctly. But if I go to the pagetype and change these and edit the page I just created the previous default values has been saved and the new default values are ignored.

So the question is if it's possible always get the property to read the default values defined on the page type?

I thougth I had fixed it but unforunatley i hadn't.

Br

Per

#29253
Apr 17, 2009 15:28
Vote:
 

I'll answer my own question. Use definition = PageDefinition.Load(customProp.PageDefinitionId) and then definition.DefaultValue;

 

#29261
Apr 18, 2009 23:23
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.