We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40122
    • 330 Posts
    I'm making a site where all my Templates, Chunks and Snippets are static files.

    I noticed that when I update a Chunk's static file, the content within Manager's GUI also updates too. This is pretty handy for making changes on the fly if I'm away from my PC with all the original static files on it - I can make the changes and then pull them down and keep going when I'm back home again.

    However, Templates don't seem to do this. If I make changes to a static file and then examine that file on the Manager the changes are not reflected in the text-area. Clearing cache has no affect.

    Does anyone know of a way to sync these up?

    Thanks!

      • 24374
      • 322 Posts
      I use static files for all my snippets and templates, and it works fine. You're sure you've got the right path to the MODX template file location on the server in your local editor? If your chunks are updating but not templates, I'm not sure what else the problem could be. Maybe check on the server to see if your template files are getting saved from your local editor to a different location than what you have set for each template in MODX? Also, check the date updated for the template files on the server to see if the date has changed, and also maybe check the file permissions on those files on the server. Are the files for your templates in the same or a different folder than the chunks and snippets?
        • 40122
        • 330 Posts
        Quote from: rainbowtiger at Aug 28, 2017, 10:43 AM
        I use static files for all my snippets and templates, and it works fine. You're sure you've got the right path to the MODX template file location on the server in your local editor? If your chunks are updating but not templates, I'm not sure what else the problem could be. Maybe check on the server to see if your template files are getting saved from your local editor to a different location than what you have set for each template in MODX? Also, check the date updated for the template files on the server to see if the date has changed, and also maybe check the file permissions on those files on the server. Are the files for your templates in the same or a different folder than the chunks and snippets?

        Oh no, it all works - the changes I make on my static files do appear on the front end of the site. It's just that these changes do not appear when I view the Template via Manager.
          • 24374
          • 322 Posts
          Quote from: meltingdog at Aug 28, 2017, 05:30 PM

          Oh no, it all works - the changes I make on my static files do appear on the front end of the site. It's just that these changes do not appear when I view the Template via Manager.

          That's very strange. When I look at the templates in my Managers, they all show the updated versions.