Error: I'm afraid this is the first I've heard of a "trackback" flavoured Blosxom. Try dropping the "/+trackback" bit from the end of the URL.

Thu, 13 Sep 2007

HTML::Template and CSS Files

The IncentivePoints application for the company website is now both functional and a partial visual match for the rest of the website.

It turns out that relative paths to CSS files don't work well with HTML::Template, but absolute paths are fine.

So I had to change

  <LINK REL=Stylesheet HREF="./site.css" TYPE=text/css>

to

 <LINK REL=Stylesheet 
 HREF="http://releaseteam.com/site.css" TYPE=text/css>

to get the web pages to see the css file.

This is not entirely surprising: HTML::Template is putting the pages together from files in several different directories, so it is questionable what the path is relative to. I was a little surprised that when Apache stopped complaining about not being able to find the CSS file, the generated html files still did not use the CSS.

Very odd.

But at least it is working now, and the displays are adequate.

I did some rather kludgey stuff to make my menus look good while still keeping them consistent with the standard formats in the CSS. I'll eventually fix that and clean up the CSS in the templates. For now, I just need to package everything up and copy it onto the office server, so the admins can start entering data.

#