How should I "organize" my website so it is easy to update?

Sharky Forums


Results 1 to 6 of 6

Thread: How should I "organize" my website so it is easy to update?

  1. #1
    Tiger Shark Ark86's Avatar
    Join Date
    Aug 2001
    Location
    Ohio
    Posts
    924

    Question How should I "organize" my website so it is easy to update?

    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).
    My Webpage: http://www.andyknotts.com (Give me feedback)

    My specs:
    ----------------
    AMD Athlon XP 2500+ OC'd to 2100MHz
    Abit NF7 @ 205 MHz FSB
    1.5Gigs PC3200 RAM @410Mhz
    Turtle Beach Santa Cruz
    Altec Lansing 641's
    128meg NVidia 6600GT AGP
    7200rpm 120G w/ WinXP pro
    5400rpm 40G w/ Gentoo Linux
    NEC DVD/RW
    Lite-on 40x12x48 CDRW
    19" Hyundai L90D+ LCD (amazing )

  2. #2
    Catfish Lan's Avatar
    Join Date
    Aug 2001
    Posts
    241
    Why not just use CSS? That way it doesn't matter how the pages are generated..
    Why not visit my Technical Travel FAQ

  3. #3
    Catfish
    Join Date
    Sep 2001
    Location
    Ft Myers FL
    Posts
    236
    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.
    MSI K7T266 Pro2,AMD XP1600,Volcano 6CU+
    Crucial 512 MB PC2100,Min Maw Case
    WD 100 Gig HD,GF2
    -------------------------------------
    Dell Inspiron 8200. P4 1.7 384mb, 30 gig HD, ATI Radeon 9000

  4. #4
    Tiger Shark Ark86's Avatar
    Join Date
    Aug 2001
    Location
    Ohio
    Posts
    924
    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.
    My Webpage: http://www.andyknotts.com (Give me feedback)

    My specs:
    ----------------
    AMD Athlon XP 2500+ OC'd to 2100MHz
    Abit NF7 @ 205 MHz FSB
    1.5Gigs PC3200 RAM @410Mhz
    Turtle Beach Santa Cruz
    Altec Lansing 641's
    128meg NVidia 6600GT AGP
    7200rpm 120G w/ WinXP pro
    5400rpm 40G w/ Gentoo Linux
    NEC DVD/RW
    Lite-on 40x12x48 CDRW
    19" Hyundai L90D+ LCD (amazing )

  5. #5
    Catfish
    Join Date
    Sep 2001
    Location
    Ft Myers FL
    Posts
    236
    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.

    Code:
    <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
    Code:
    <%@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
    Code:
    <!--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
    Code:
    <!--#include file="incheader.asp"-->
    Body of pages go here...
    
    <!--#include file="incfooter.asp"-->
    Does that make sense??
    MSI K7T266 Pro2,AMD XP1600,Volcano 6CU+
    Crucial 512 MB PC2100,Min Maw Case
    WD 100 Gig HD,GF2
    -------------------------------------
    Dell Inspiron 8200. P4 1.7 384mb, 30 gig HD, ATI Radeon 9000

  6. #6
    if you have a php and my sql supporting server check out www.phpnuke.org and www.bassment.net to see it in action

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •