Skip to main content.
home | support | download

Back to List Archive

Re: Swish-E and CSS

From: Phil Matt <philm(at)>
Date: Thu Apr 15 2004 - 20:58:55 GMT
On 15 Apr 2004 at 12:44, Bill Moseley wrote:

> If using the TemplateDefault module to generate output then how about
> adding something like:
>    print `cat /path/to/include/file`;
> -- 
I'm not following this.

The HTML to be generated by the DefaultTemplate module looks like this. It sets the 
output in a <div> with an ID of "Content", which sets borders, margins, padding, font 
attributes, etc. The <div> with an ID of "Menu" is where the SSI file is ordinarily brought 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<link rel="stylesheet" type="text/css" href="/scripts/navmenu.css">
<link rel="stylesheet" type="text/css" href="/scripts/sitestyle.css">
<script type="text/javascript" src="/scripts/nnav.js"></script>
	<div id="Pcontent" style="position:absolute; left:18px; top:120px; width:97%; height:auto; z-index:1; visibility: visible"> 
	<div id="Menu" style="position:absolute; z-index:25; left: 0px; top: 23px; visibility: visible"><!--#include file="/scripts/menusystem.htm" --></div>
	<div id="Content" style="position:absolute; top:10px; left:200px; z-index:22; background-color: #FFF; layer-background-color: #FFF; visibility: visible">
        $title $message

I took out the include statement, and tried:

<div id="Menu" style="position:absolute; z-index:25; left: 0px; top: 23px; visibility: visible"> print `cat /www/htdocs/scripts/myfile.htm`;</div>

This doesn't display on the browser, but if I look at the code, the line is there. 

How does the print statement in the middle of all this HTML get processed correctly?

Cheers --- PhilPhil Matt Photography
(585) 461-5977

Due to deletion of content types excluded from this list by policy,
this multipart message was reduced to a single part, and from there
to a plain text message.
Received on Thu Apr 15 13:58:57 2004