We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7575
    • 85 Posts
    hi

    I am making my first site in modx (revolution)
    I was busy making my first snippet and now I accidentally have overwritten my template with a snippet.
    And I have pressed save.

    Is my template code completely gone?
    And how can I prevent this in the future?

    my modx manager is still open (I don’t dare to close it now)...

    greetings
      www.tornooi.net online database for (sport) events in dutch.
      To be redesigned, rewritten to modx with multiple languages...
      ANY help appreciated, I cannot offer money but I can offer free advertising on the site. just message me.
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      If you changed the template’s content with something else, save it, yes it’s gone. MODx doesn’t keep backups from itself.

      How to prevent? Make sure you check where you’re coding.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 7575
        • 85 Posts
        I thought so...

        my own stupid fault....
          www.tornooi.net online database for (sport) events in dutch.
          To be redesigned, rewritten to modx with multiple languages...
          ANY help appreciated, I cannot offer money but I can offer free advertising on the site. just message me.
          • 3749
          • 24,544 Posts
          Quote from: djemmers at Jun 18, 2010, 06:41 AM

          I thought so...

          my own stupid fault....

          It won’t help you now, but you can back up the site before starting any serious work. You can also use the "Duplicate" function in the Manager to create backups of all the important elements and resources.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            When I’m developing, I usually try to remember to run the Backup utility (tools -> backup) every day before I quit for the day. I can’t count the number of times it’s saved my bacon when I do something bacon-brained.

            I also tend to install the BkupMODx module the first thing after I install MODx somewhere; it quickly and easily backs up the whole site, files, database and all.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org