ASPX templates
Version 5.x > ASPX templates > Modifying Pre-Defined Types View modes: 
User avatar
Member
Member
eric.rovtar - 1/20/2011 4:52:33 PM
   
Modifying Pre-Defined Types
Hi!

Would it be wrong to add a custom field/attribute to the CMS.Page document type? I foresee this becoming a problem in upgrades.

Is it best to create my own Page document type?

Thanks!

-Eric

User avatar
Kentico Support
Kentico Support
kentico_radekm - 1/23/2011 1:27:05 PM
   
RE:Modifying Pre-Defined Types
Hello.

There should be no problem with custom field added into pre-defined document type in order to a future upgrade procedure. I mean during upgrade procedure custom fields should not be re-written and lost. Moreover, this is common operation and many our customers are using modified document types in upgraded version with no problem. Did you try it and encountered some particular problem or you just want to be sure? Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
eric.rovtar - 1/23/2011 2:55:51 PM
   
RE:Modifying Pre-Defined Types
I didn't try it yet. I just wanted to check before doing it. When I tried upgrading from 5.5 to 5.5R2, I got an error that I thought was due to my modifications to the CMS.File type, but maybe that wasn't it.

I suppose it's always better to do a clean install anyway. In which case, I can then readd the custom attribute to the type before importing the site objects.

Thanks!

User avatar
Kentico Support
Kentico Support
kentico_radekm - 1/25/2011 3:32:27 AM
   
RE:Modifying Pre-Defined Types
Hello.

Both ways are possible, it depends on your consideration. However it should be possible to upgrade project with modified document type as well. If you encounter any problem during upgrade process, you can post its details here and we will try to help you. Thank you.

Best Regards,
Radek Macalik