We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29787
    • 6 Posts
    I’m not using any snippets right now.

    I’m the curious type - so I’ve been trying to figure this out - why would the initial install display the page correctly (Welcome to the MODx Content Management System
    Install Successful!...) but when I go to make my own template, it breaks? Is there something in the templates code I’m missing? Do CSS files need to be in a specific location?
      • 25663 MODX Staff
      • 12,272 Posts
      As long as you reference the paths appropriately, you can put any linked resources (JS/CSS/etc.) anywhere on the filesystem you choose.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 3749
        • 24,544 Posts
        Quote from: thestrag at Oct 29, 2007, 03:06 PM

        I’m not using any snippets right now.

        I’m the curious type - so I’ve been trying to figure this out - why would the initial install display the page correctly (Welcome to the MODx Content Management System
        Install Successful!...) but when I go to make my own template, it breaks? Is there something in the templates code I’m missing? Do CSS files need to be in a specific location?

        If there are no snippets, the odds favor a bit of bad HTML in your template. In my case, it’s usually an unclosed tag.

        Try going to the WC3 site and pasting in the code from your whole template:

        http://validator.w3.org/#validate_by_input

        Bob
          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
          Quote from: thestrag at Oct 29, 2007, 03:06 PM

          Do CSS files need to be in a specific location?
          Just as long as the link in your template’s head point to the CSS file you’re all set. Usually all things "template" go into the assets/templates/TemplateName/ folder, which you need to create. I keep my css, any js files and images specific to that template in such a folder. But you can put them anywhere you like, as long as the links are good, just like any flat HTML file.
            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