#1 November 20, 2014 8:26pm

nate.lantz
Member
Registered: November 20, 2014
Posts: 7

Disable CMS overwriting template and module files

How can I disable the CMS from overwriting a template file?
I want to be able to create page templates locally, push them to a git repo, then set it up on a production server. I don't mind having to make the cms entry for a new page type in the developer settings, I just don't want it to change the files that already exist.

Offline

#2 November 21, 2014 11:20am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Disable CMS overwriting template and module files

It shouldn't overwrite existing files when creating a template -- it does a file_exists check to see if you have a pre-existing template file and only writes out the blank file (with resource instructions) if nothing exists.

I did a quick test and was able to keep a pre-existing template file -- is it overwriting for you?

Offline

#3 November 21, 2014 11:25am

nate.lantz
Member
Registered: November 20, 2014
Posts: 7

Re: Disable CMS overwriting template and module files

It just did for both module files and template files.
My Environment:

OS: Mac OSX 10.10.1
Web Server: Apache (Via AMPPS v4.5.4)
PHP: 5.4
MySQL: 5.6.17

BigtreeCMS: 4.1.3


I'll try it again later today to see if I can replicate it, or how to not replicate it. It didn't seem logical that it would overwrite existing files. I may be doing something wrong. If I find a true bug I'll fork the repo and send a merge request.

Thanks again

Offline

#4 November 21, 2014 3:18pm

nate.lantz
Member
Registered: November 20, 2014
Posts: 7

Re: Disable CMS overwriting template and module files

I tried it a few times again today and couldn't replicate the error. I think I must have done something wrong the first couple of times

Offline

#5 November 21, 2014 3:19pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Disable CMS overwriting template and module files

Thanks for following up! I went ahead and installed AMPPS and couldn't replicate it either but I did find installation errors related to ctype and MySQLi, so some bugs got fixed thanks to this thread anyway! smile

Offline

#6 November 21, 2014 3:21pm

nate.lantz
Member
Registered: November 20, 2014
Posts: 7

Re: Disable CMS overwriting template and module files

Oh ya,
When I installed it I needed to edit the ini file to allow short tags.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.