You are not logged in.
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
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
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
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
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!
Offline
Oh ya,
When I installed it I needed to edit the ini file to allow short tags.
Offline