Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ap 8 posts 31 karma points
    Sep 02, 2010 @ 10:28
    ap
    0

    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

  • Bijesh Tank 192 posts 420 karma points
    Sep 02, 2010 @ 10:41
    Bijesh Tank
    0

    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.

  • Paul Blair 466 posts 731 karma points
    Sep 02, 2010 @ 11:15
    Paul Blair
    0

    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

  • Bijesh Tank 192 posts 420 karma points
    Sep 02, 2010 @ 11:26
    Bijesh Tank
    0

    Yup, ditto to Paul's suggestion above. 

  • ap 8 posts 31 karma points
    Sep 02, 2010 @ 11:50
    ap
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft