We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14313
    • 4 Posts
    Hi All,

    I am just starting looking at modx and need a bit of help. I have installed ’Revolution 2.0.0-beta-5 rev6224’ and created a new document. Now when I preview the site I can see the new document but not have the default template. I am not sure if I have missed something here in order to get the template to show so any advice will be great.
      Many Thanks
      John Messingham
      http://www.jmds.co.uk
      • 34193
      • 330 Posts
      Have you created a template???
        • 14313
        • 4 Posts
        Hi,

        No, I noticed a folder called ’default’ in the templates folder and assumed it was available to use but cannot seem to find anywhere to set the framework to use it.

        Sorry if I am missing somethng obvious.
          Many Thanks
          John Messingham
          http://www.jmds.co.uk
          • 22303 MODX Staff
          • 10,725 Posts
          Revolution is a blank slate. You have to create any templates you want to use. I’m not sure what templates folder you are talking about, unless you mean the manager templates which have nothing to do with anything but the manager UI.
            • 14313
            • 4 Posts
            Hi,

            Thank you both for taking the time to reply.

            Jason, sorry I missed the fact the the template folder is below the manager folder. I will look into creating a template and moving on from there.
              Many Thanks
              John Messingham
              http://www.jmds.co.uk
              • 34193
              • 330 Posts
              There are currently no default templates in Revo while it is in beta, not sure if there will be in GA the devs would be able to tell you that.

              In order to create a template, you need to log in to the manager and then click on the elements tab above the resource tree on the left.

              Then right click on the templates in the tree and select new template.

              To create a template just use standard XHTML/CSS, to start off with just create on content area within the template and place [[*content]] where you want the content to appear.

              So an example of the most basic template would be.
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
              <head>
              
              <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
              <title>[[++site_name]] - [[*pagetitle]]</title>
              </head>
              <body>
              [[*content]]
              </body>
              </html>


              Save the template

              Then apply this template to your page by editing the page and in the Uses template box select the template you created.
                • 14313
                • 4 Posts
                Thanks Pete, things are moving on now.
                  Many Thanks
                  John Messingham
                  http://www.jmds.co.uk
                  • 3749
                  • 24,544 Posts
                  Note, too, that the template you create will be stored in the MODx database, not as a file.
                    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
                    • 22303 MODX Staff
                    • 10,725 Posts
                    Quote from: peteedley at Dec 20, 2009, 03:30 PM

                    There are currently no default templates in Revo while it is in beta, not sure if there will be in GA the devs would be able to tell you that.
                    The plan is that there will be a variety of complete sample sites and just basic templates available to download from the Extras repository. There may also be pre-built distributions that include some of the more popular sample sites or templates.