I wonder why templates (masterpages) are stored in database? Is it good idea to edit them outside umbraco panel (e.g. in VisualStudio)? What about version control? How to deal with database restore - old version of templates in database and newer in directory?
You can edit your masterpages outside of Umbraco, like Visual Studio and have it under source control as well. I usually have my XSLT, usercontrols, CSS, masterpages and javascript under source control.
If for instance you are doing a database restore, it won't affect your masterpages as long as you have them on the file system.
I think templates were only stored in DB in pre version 4 Umbraco. Like Bijesh says use Visual Studio for most of your development. I just use the Umbraco interface for creating document types & content. I also create the XSLT & template stubs through the Umbraco interface and then edit them in VS
I use Umbraco 4.5.2. I have observed changes in template stored in db after save from umbraco panel. Question - does umbraco read template from db (cmsTemplate table, design column)? Is it possible that umbraco changes template in file system?
Templates in database
I wonder why templates (masterpages) are stored in database? Is it good idea to edit them outside umbraco panel (e.g. in VisualStudio)? What about version control? How to deal with database restore - old version of templates in database and newer in directory?
Regards
AP
Hi AP,
You can edit your masterpages outside of Umbraco, like Visual Studio and have it under source control as well. I usually have my XSLT, usercontrols, CSS, masterpages and javascript under source control.
If for instance you are doing a database restore, it won't affect your masterpages as long as you have them on the file system.
I think templates were only stored in DB in pre version 4 Umbraco. Like Bijesh says use Visual Studio for most of your development. I just use the Umbraco interface for creating document types & content. I also create the XSLT & template stubs through the Umbraco interface and then edit them in VS
Yup, ditto to Paul's suggestion above.
I use Umbraco 4.5.2. I have observed changes in template stored in db after save from umbraco panel. Question - does umbraco read template from db (cmsTemplate table, design column)? Is it possible that umbraco changes template in file system?
is working on a reply...