We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9419
    • 15 Posts
    Hello all.
    I’m really a rookie in modX and I would like to know if someone can point me out some wiki page explaining how the modX tree is related with the files and folders in the hard disk.
    I created a template but I can’t find that template in my hard disk. Where should I place the images that the html code are pointing out?
    Where to put the CSS file for that template?

    I’m sure this is quite basic and is somewhere explained in this forum ... I don’t even know if this is the right thread.

    Thks,
    Fanan
      • 2472
      • 151 Posts
      Have you tried the /whereEverTheModxHomeIs/assets/templates folder?
      There should at least be a ’default’ folder that holds the default template...
        A thing of beauty is a joy forever ( John Keats)
        • 9419
        • 15 Posts
        Yes but that folder doesn’t contain the template that I’ve created.
          • 34162
          • 1 Posts
          I suppose you mean a template you’ve created within the Manager of Modx.

          This is stored in the database Modx uses, to be exact in the modx_site_templates table (if you’ve used modx_ as a prefix). Templates, documents, snippets etc. are not stored in folders on your harddisk or server, but in the database.

          Css, images, etc. you can upload by ftp to any location you wish. Or to the appropriate folders you can find under /assets. In your template, just point to this location.

          For example, if youv’e uploaded an image to /assets/images, you could use a html code in your template like this:
          <img src="assets/images/image.jpg" alt="" />
            • 9419
            • 15 Posts
            Ok! I’m getting the idea.
            Does anyone know a topic / document that describes and explains how that database works?

            Thks guys,
            fanan
              • 34162
              • 1 Posts
              There’s some documentation which explains the basics of MODx.

              You could also look into the wiki pages.

              And look around in the forums, of course.

              Ow, and by the way, welcome to the MODx community! laugh