Jump to content


New templates show blank


5 replies to this topic

#1 shanester

    Etomite Forum Newbie

  • Member
  • 10 posts

Posted 25 May 2006 - 05:45 AM

I'm very much a newbie to the system, and the documentation doesn't provide an explicit listing of file structures and database structures and where everything should go, so I'm probably doing something wrong that can be fixed simply.

I want to retrofit my existing site into Etomite, so my first step after getting it installed was to try to template-ize my home page as a test. Following the instructions in the documentation, I created a new template, pasted my home page into it, removed some key content, and added a couple of Etomite tags I thought would be obvious. I then saved it, created a new document, linked it to the new template, and added some test text to the content for the page. Finally, I published it and specified that new document as the main page in the site confguration.

When I preview it or try to access the site directly, all I get is a blank page. Even viewing the source shows nothing. As far as I can tell, the template is in the database though it does not show down with the other templates in the tree. I can edit it and so forth if I go through Manage Resources. I've read in many other posts that I should not worry about the files being in the folder structure as long as it's in the database.

If I switch to another template for that document, all is well. I've tried putting my style sheets in various places in the folder structure, as well as the images and other stuff, but if it were finding and applying the template properly I would think I should still see SOMETHING, even if it's just straight text or an error. I've tried both Firefox 1.5 and IE. Anyone have any ideas what I'm doing wrong? Are there tags or other elements that are taboo in templates?

Shane

#2 Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 25 May 2006 - 08:36 AM

--> Moved to template development

Why not post your template here?

#3 shanester

    Etomite Forum Newbie

  • Member
  • 10 posts

Posted 25 May 2006 - 03:08 PM

I considered doing that, but I didn't want to clutter things unnecessarily if there was a simple procedural error on my part. If you want to see what it's *supposed* to look like, go to http://www.longtins.com and check it out. The only modifications I've really made are the few Etomite tags I added in place of other text, the paths to the graphics, and taking out a javascript section I think DW just threw in there. Here's the code for the template as it is in Etomite:

-----------------------------------------------

<?xml version="1.0" encoding="iso-8859-1"?>
<!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">

<head>
<title>[(site_name)] » [*pagetitle*]</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
[[GetKeywords]]
<link href="main.css" rel="stylesheet" type="text/css" media="screen" />
<link href="master.css" rel="stylesheet" type="text/css" media="screen" />
</head>

<body>

<div id="mainlogo"><img src="templates/Longtins/images/mainlogo.jpg" width="510" height="82" alt="" /></div>

<div class="mainnav">
#include virtual="templates/Longtins/includes/mainnav.inc"
</div>

<div id="mainshanepic"><img src="templates/Longtins/images/mainshaneface.jpg" width="175" height="175" alt="" />
<div class="mainfacenav"><a href="shane/shane.shtml">shane</a></div>
</div>
<div id="mainraeynapic"><img src="templates/Longtins/images/mainraeynaface.jpg" width="175" height="175" alt="" />
<div class="mainfacenav">raeyna</div></div>
<div id="mainjordanpic"><img src="templates/Longtins/images/mainjordanface.jpg" width="175" height="175" alt="" />
<div class="mainfacenav"><a href="jordan/jordan.shtml">jordan</a></div>
</div>

<div class="mainwhatsnew">
<h2>what's new</h2>
[*content*]
<div id="textfooter">
<!--#include virtual="templates/Longtins/includes/textfooter.inc" -->
<p>[[PoweredBy]]</p>
<p>MySQL: [^qt^], [^q^] request(s), PHP: [^p^], total: [^t^], document retrieved from [^s^].</p>
</div> <!-- textfooter -->
</div> <!-- mainwhatsnew -->

</body>
</html>

#4 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 25 May 2006 - 03:15 PM

Have you got a link to the non-working one, or PM me some login details and i'll check it for you...

#5 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 25 May 2006 - 07:51 PM

As covered previously, the <?xml version="1.0" encoding="iso-8859-1"?> line is your culprit... This is a known issue and a patch may be made available in the not too distant future... For now you can blame the parser...

#6 shanester

    Etomite Forum Newbie

  • Member
  • 10 posts

Posted 26 May 2006 - 04:39 AM

View PostRalph (rad14701), on May 25 2006, 02:51 PM, said:

As covered previously, the <?xml version="1.0" encoding="iso-8859-1"?> line is your culprit... This is a known issue and a patch may be made available in the not too distant future... For now you can blame the parser...

Thanks. I took out that line and voila, I have a visible page. I may have never found it on my own, though -- I searched the forums for that string and "parser" and came up with over 3000 hits. Thanks for the quick response!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users