ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Template Editor OR File system support. Not both please :-D

September 25, 2012 1:36pm

Subscribe [1]
  • #1 / Sep 25, 2012 1:36pm

    aphillipo

    12 posts

    I’m a little concerned that the Template Editor doesn’t show a diff or try to do a merge when you edit templates on the file system and then in the template editor. This might be a deal breaker. To be honest I’d rather there was no template editor at all.

    Any way I can completely control all of my templates from the file system without the database side being involved.  I want my templates in my version control system because they are code?

    Thoughts?

    Thanks in advance,

    Andy.

  • #2 / Sep 26, 2012 11:24am

    Dan Decker

    7338 posts

    Hi Andy,

    Thanks for your input and welcome to ExpressionEngine and the Forums!

    When you have templates-as-files, ExpressionEngine manages them with the file “winning” as it were.

    When you trigger the Template Manager in the Control Panel or visit the template URI via web browser, EE syncs the file to the database. There is feedback in the Template Manager as to where EE has read the template from.

    Make an edit to the template in the Control Panel? EE syncs that back to the file. Granted, the communication about what is happening could be improved, but EE has done this since the beginning.

    I want my templates in my version control system because they are code?

    EE Devs do it everyday. Generally? When a site is in active development, templates-as-files in VCS. Once the site goes live, they switch to the database.

    I do like the idea of a “Master Setting” in some regards, but that presumes a lot on the part of other users… I’ll bring this up with the team and see what kind of traction is gets.

    You want me to move this to a more general discussion area for more feedback?

    ~

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases