FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Navigation





CT93
I currently operate a HTML website. However, I find it difficult to maintain, as I have heaps of pages, but not enough time to update the navigation individually on all the pages. Does anyone have a tip, without using framing, on how to update one navigation to update them all?

Much appreciated Smile
Azmo
how much time does it take to copy + paste? I operate a couple of sites for different companies.. I've given them an update script so they can update some stuff themselves.. like text, but anything else goes trough me, it can take some time, specially if they update it all the time and you run an ftp... anywas.. I suggest that you take ur time, take the time that's needed and just do it.. easy as hell if you use a file manager like this on frihost..
ennnzo
I suggest you sue PHP. It's very easy to convert HTML to PHP. Example, this is your index page:

Code:

<html>
<head>
   <title>Old Attic ver.5>>>Sweet Love/title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" type="text/css" rel="stylesheet">
</head>

<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">
<TABLE WIDTH=702 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR><TD><IMG SRC="images/header.png"></TD></TR>
</TABLE>
</DIV>

<div class="sidebar">

<h1>Welcome</h1>
Blah Blah Blah...
<br />
<br />
<br />

<h1>Navigation</h1>
Blah Blah Blah...
<br />
<br />
<br />

</div>

<div class="content">

<h1>welcome</h1>

<p>Hey! <b>bold</b> <i>italic</i> <u>underline</u> <strike>strike</strike></p>

<h2>header 2</h2>

</div>

</body>
</html>


The header usually starts at the doctype declaration up to the part where you state the alignment and positioning of the content/sidebar.

Here's the header of the index page I've shown earlier:



Code:

<html>
<head>
   <title>Old Attic ver.5>>>Sweet Love/title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" type="text/css" rel="stylesheet">
</head>

<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">
<TABLE WIDTH=702 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR><TD><IMG SRC="images/header.png"></TD></TR>
</TABLE>
</DIV>

<div class="sidebar">


Then the sidebar:

Code:


<h1>Welcome</h1>
Blah Blah Blah...
<br />
<br />
<br />

<h1>Navigation</h1>
Blah Blah Blah...
<br />
<br />
<br />

</div>

<div class="content">


The content or the footer:

Code:


<h1>welcome</h1>

<p>Hey! <b>bold</b> <i>italic</i> <u>underline</u> <strike>strike</strike></p>

<h2>header 2</h2>

</div>

</body>
</html>


That way, you'll onyl edit the sidebar.php whenever you add navigation.

To put up a page with the header, sidebar, footer:

Code:


<? include ("/path/to/header.php"); ?>
<? include ("/path/to/sidebar.php"); ?>
<? include ("/path/to/footer.php");?>



Hope this long post helps..
Azmo
yep.. that works too.. didn't know if you hosted trough frihost or what u hosted through.. not every host have php support..
{name here}
CT93 wrote:
I currently operate a HTML website. However, I find it difficult to maintain, as I have heaps of pages, but not enough time to update the navigation individually on all the pages. Does anyone have a tip, without using framing, on how to update one navigation to update them all?

Much appreciated Smile

SHTML will work good for you, since I don't think you want to do anything fancy nor do you want to work with anything complex.

Copy the head part of the file to the part where the main content starts into a header.html file, then copy the part where the main content ends and put it into a footer.html file. Then write .shtml files structured like this:
Code:

<!--#include virtual="/header.html" -->
{Main Content Here}
<!--#include virtual="/footer.html" -->

If you want, you can even use Coranto with this, and then you can have pages you can generate that are more dynamic, quite easily.
ennnzo
Not all servers have Perl support though...Plus, PHP is used more rather than SHTML. I don't know which would he need though.
{name here}
ennnzo wrote:
Not all servers have Perl support though...Plus, PHP is used more rather than SHTML. I don't know which would he need though.

I've seen Perl support more frequently than PHP support, and SHTML will work in just about every apache server. The frequency argument is null and void because it is preference of the person that matters. Slashdot is still run by Perl scripts rather than PHP because the programmer of the site liked Perl! I used to run my site 100% on Coranto until I wanted to move to a community oriented environment.

I find SHTML better than PHP when I want to deploy a site quickly and easily without the need to do complex directives or anhything like that. Plus it will respond faster than PHP - SHTML isn't as commonly used and it is integrated into Apache.
Related topics
Simple PHP Navigation
Site Nav Suggestions...
navigation bars
Logo in navigation bar
Navigation Bars
Navigation
navigation help
forum thread navigation
css navigation tutorial
Satellite navigation on phone
Navigation Bar Updates in HTML
Navigation is Key!!
INNOVATION IN NAVIGATION!!
problem with <ul> navigation
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.