We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50595
    • 32 Posts
    Hello community

    At the moment I'm dealing with a very strange behaviour while implementing a website into MODX:

    I use some .html files as static template files. I upload them to the filesystem and tell the backend it's a static resource. After saving the template the whole frontend remains blank. When I have a look at the filesystem (using Transmit FTP Client) I see that the file I uploaded seconds before has now 0 bytes. It's completely blank. See attached screenshots.

    Is there anybody who knows what the problem is?

    Greetings from Switzerland

    Ralph

    This question has been answered by ralphbolliger. See the first response.

    • I can't get that to happen. What version of MODX are you using?
        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
        • 42562
        • 1,145 Posts
        Seems like his manager is overriding the content of the file on the server.
        At a guess, there is a conflict of names, or that static plugin is giving problems.
          TinymceWrapper: Complete back/frontend content solution.
          Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
          5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
          • 50595
          • 32 Posts
          Hi sottwell

          Quote from: sottwell at Jun 11, 2015, 03:21 AM
          I can't get that to happen. What version of MODX are you using?

          It's modx-2.3.3-pl. New installation. Not an upgrade.
            • 50595
            • 32 Posts
            Hi donshakespeare

            Quote from: donshakespeare at Jun 11, 2015, 05:34 AM
            Seems like his manager is overriding the content of the file on the server.
            At a guess, there is a conflict of names, or that static plugin is giving problems.

            In fact the «static plugin» isn't a plugin. This came built in with MODX. The only plugin I use is getResources.
            • discuss.answer
              • 50595
              • 32 Posts
              Hello community

              I guess I figured out what the problem was.

              (It's located between the chair and the screen... as always)

              However.
              After saving the template and telling it a path to the «static resource» it displayed the source code of the given file in the «Template-Code (HTML)» area beneath. I thought it's not necessary to have the code there because it's in a static file. So I cleaned out the «Template-Code (HTML)» area every time. This was the mistake.

              If you change the source code in the «Template-Code (HTML)» area it will save the changes to the static template file you defined above. Very handy if you use it right. smiley

              So I guess the problem is solved now.

              Greetings from Switzerland

              Ralph
              • Ah. You didn't mention that you were doing that wink
                  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
                  • 50595
                  • 32 Posts
                  Hi sottwell

                  Quote from: sottwell at Jun 12, 2015, 03:17 AM
                  Ah. You didn't mention that you were doing that wink

                  Yes, indeed! Bricks and Mortality. :-/

                  Greetings

                  Ralph