SSI Newbie

yeah im a whole newbie to this SSI thing and i see all these sites using it for like their sidebar (link/navigation) header and that kind of stuff i've looked but i havent found much on how to do it i mean theses sites i see they arent using frames (or are they?)but when i try i can't get anything to go to the left or right of what i include am i doing something wrong???

~Totaly confused NewBie~shuis,

This page will show you howto create an ssi call on your page:
<!-- m --><a class="postlink" href="http://www.perlaccess.com/tutorials/9/9.5.html">http://www.perlaccess.com/tutorials/9/9.5.html</a><!-- m -->

Regards,okay i know how to do that now but how do i like make my links.txt as a sidebar and have things to the left or right of it???? instead of a header or footer??You need to include the SSI call from within a table. If the table runs down the left hand side of the page, your SSI contents will be a sidebar. A table running along the top will give you a navbar across the top.

You won't be able to intervene in how the SSI is formatted from within the page calling it, so it'll all need to be pre-formatted.

Hope this helps.Here's a simple example for you:

<html>
<head>
<title>Web site Title</title>
<META NAME="DESCRIPTION" CONTENT="">
<META NAME="KEYWORDS" CONTENT="">
</head>
<!--#include file="inc1.txt"-->
Main text
<!--#include file="inc2.txt"-->

Now imagine you had within inc1.txt the following:

<BODY>
<TABLE WIDTH=100%>
<TR><TD WIDTH=20%>Your Site Navigation Goes Here</TD>
<TD WIDTH=80%>

and you had the following in inc2.txt:

</TD></TR></TABLE>
</BODY>
</HTML>

This would mean that all you would ever have to do is enter the relevant content for that page in the 'Main text' bit.

By changing inc1.txt you could change your navigation on every page straight away.

Hope this helps.thank you :)Wow, I've had two thank-you's in one day. No problemo friend ;)
 
Top