Click to See Complete Forum and Search --> : How should I "organize" my website so it is easy to update?


Ark86
12-13-2002, 11:20 PM
I have a layout for my website and I would like to make it easy for me to change the layout at any time without having to change every page. How should I go about doing this? Should I stay away from SSI? Or would ASP work? (I am in the process of learning ASP).

Lan
12-14-2002, 11:17 AM
Why not just use CSS? That way it doesn't matter how the pages are generated..

FMRock
12-14-2002, 12:04 PM
I use a combination of SSI, ASP, and CSS.

Usually I create a "incheader.asp" and an "incfooter.asp" to wrap all my pages with. You can link your style sheet in the header, and that way all the pages you include your header in have your style sheet. You can also write asp in your header or footer to do whatever you want.

Ark86
12-14-2002, 01:32 PM
Usually I create a "incheader.asp" and an "incfooter.asp" to wrap all my pages with. You can link your style sheet in the header, and that way all the pages you include your header in have your style sheet. You can also write asp in your header or footer to do whatever you want.
OK, so you mean use SSI to include your ASP header and footer pages? That sounds pretty good. I don't know any CSS so I am not going to use that.

FMRock
12-14-2002, 01:52 PM
CSS is a good idea because you can format the way (text, links, ect) are displayed. But the actual layout would be better done with includes. Here is a simple example i hope makes sense.


<html>
<head>
<title>Test Page</title>
</head>
<body>
<table border="0">
<tr>
<td width="600" align="left" valign="top" colspan="2">Header Graphic</td>
</tr>
<tr>
<td width="100" align="left" valign="top">Left Side Navigation</td>
<td width="500" align="left" valign="top">Body of web pages</td>
</tr>
<tr>
<td width="600" align="left" valign="top" colspan="2">Footer Graphic and Text</td>
</tr>
</table>
</body>
</html>



The Header could be

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<table border="0">
<tr>
<td width="600" align="left" valign="top" colspan="2">Header Graphic</td>
</tr>
<tr>
<td width="100" align="left" valign="top">Left Side Navigation</td>
<td width="500" align="left" valign="top">
<!--header ends here-->


The Footer Could Be

<!--Foter Starts here-->
</td>
</tr>
<tr>
<td width="600" align="left" valign="top" colspan="2">Footer Graphic and Text</td>
</tr>
</table>
</body>
</html>


SO then in all your pages you could include them like

<!--#include file="incheader.asp"-->
Body of pages go here...

<!--#include file="incfooter.asp"-->


Does that make sense??

adam_uk
12-15-2002, 06:56 AM
if you have a php and my sql supporting server check out www.phpnuke.org and www.bassment.net to see it in action