I’ve been playing around with Modx for a few days, but am having problems getting templates to work.
First, I’m following a tutorial here...
http://codingpad.maryspad.com/2009/03/31/building-a-website-with-modx-for-newbies-part-3-working-with-templates/
I’m trying to keep it as close as possible to the original tutorial. The main difference is that I needed to add an additional node (the "site2") in the following examples. Using the default template, everything works as expected. But when I switch to the downloaded template, it just displays the template html code, without formatting. The only deviation from the tutorial that I am aware of is the extra node (site2). I see nothing else wrong. Any ideas???
With Default Template
••(from Manage Resources --> Templates)
<title>[*pagetitle*] - [(site_name)]</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=[(modx_charset)]” />
<link rel=”stylesheet” href=”[(base_url)]assets/templates/mytemplates/swansong/styles/style.css” type=”text/css” />
<base href=”[(site_url)]” />
••(from View Page Source) This works...
<title>Matt’s Practice MODx Site. | Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="/modx/site2/assets/templates/default/site.css" type="text/css" media="screen" />
<base href="http://localhost:8888/modx/site2/" />
With a Downloaded Template
••(from Manage Resources --> Templates)
<title>[*pagetitle*] - [(site_name)]</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=[(modx_charset)]” />
<link rel=”stylesheet” href=”[(base_url)]assets/templates/mytemplates/swansong/styles/style.css” type=”text/css” />
<base href=”[(site_url)]” />
••(from View Page Source) This does NOT work.
<title>Home - Matt’s Practice MODx Site.</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8” />
<link rel=”stylesheet” href=”/modx/site2/assets/templates/mytemplates/swansong/styles/style.css” type=”text/css” />
<base href=”http://localhost:8888/modx/site2/” />