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.

Syncing templates when deleted by hand.

March 16, 2012 8:35pm

Subscribe [1]
  • #1 / Mar 16, 2012 8:35pm

    Charming Nerd

    196 posts

    I don’t think there is a solution for this, but I thought I would post. I like my templates to be files, as do most people. I can create new files and they work just fine. However, if I delete a file with my file system, those templates are still in the database and if you sync, the files will be re-created. How can I avoid this?

  • #2 / Mar 17, 2012 9:18pm

    glenndavisgroup

    436 posts

    Hi Charming,

    This is because EE is always the master holder for all template files. If you don’t delete it from the EE db then EE thinks they should still be there and recreates the files if they are missing. The only way to get rid of them for good is to delete them using the Control Panel (CP). In the CP go to “Desing > Templates > Template Manager” and depending on how many template groups you have. Click the template group you want to delete the template file from. Then click the “delete” option on the far right for the template you want to delete. You will get a confirmation page asking if you are sure you want to delete this template. Click the “delete” button on the confirmation page and that’s it. Your template should be deleted from the db and the file will also be delete from the folder. I hope that helps.

    Mike

  • #3 / Mar 19, 2012 4:16pm

    Charming Nerd

    196 posts

    Yeah, I know. I was just hoping for a way to git rid of all that. Lo and behold, I found the answer I am looking for.

    http://getbunch.com/post/12702917040/expressionengine-version-control

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

ExpressionEngine News!

#eecms, #events, #releases