We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30642
    • 3 Posts
    Where should I upload my CSS for the template and if i want to use some javascript liberies, where should I upload this to?

    I am all new at this CMS.
      • 4310
      • 2,310 Posts
      Wherever you want.
      The general convention is...
      assets/templates/your-template/
      Just to keep it all together.
      But equally you could use the existing js & images folders and create a css folder
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        The trick is to make sure the paths in your template point to wherever you do put things, exactly the same as you would if it were a 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
          • 30642
          • 3 Posts
          Thanks for the quick response.
          But where does it save my templatepages?
          I can’t write the exact path when i don’t know where i saves my html sites?

          Should i just create a folder for my template in the template folder in a ftp program, or is there a specific way to do this?
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Using the FTP client to create a folder for your template, then upload all the template’s support files is the way it’s normally done. Sometimes, depending on your server’s configuration, you can use the MODx File Manager for uploading files and creating new folders.

            It is also possible to use a MODx resource as a .css file. http://modxcms.com/forums/index.php?topic=5258.0
              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
              • 30642
              • 3 Posts
              I have uploaded all my folders to one folder in the templates folder, and my application will not work.
              I have downloaded an application from http://www.flabell.com/flash/XML-Banner-Rotator-233, and how i should can you see on rsl.dk how it looks like can you see on http://presta.badmintonbixen.dk

              Any advices are welcome!
              Thanks in advance.
                • 4172
                • 5,888 Posts
                I get:
                Stream-Fehler. URL: assets/templates/rsl/banner/assets/templates/rsl/banner/xml/banner.xml

                try changing:

                // path to content XML
                 flashvars.contentXMLPath = "assets/templates/rsl/banner/xml/banner.xml"; 


                to

                 // path to content XML
                flashvars.contentXMLPath = "xml/banner.xml"; 
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 4310
                  • 2,310 Posts
                  Also it is good to add this to your template head area :
                  <base href="[(site_url)]"></base>