Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Aug 2003
    Posts
    10
    Member #
    2706
    I've been thinking about this for quite some time and I'm not sure how to do this.

    My problem is about the navigation bar. Let's just say I have a huge site and there are 10 links to different sections of the site. So every page contains the navigation bar with 10 links.

    Now what if I wanted to add a new section to the site, this means I'll have to update the navigation bar to include 11 links. I have no choice but to update the html script to every single html file so the navigation bar contains 11 links on each page. This process can be very tedious and unefficient.

    Is there a way I can just update the navigation bar once and the whole site will take effect. Something similar to css? Maybe javascript can do this? I really don't know.

    Can someone help me.

  2.  

  3. #2
    Senior Member mossoi's Avatar
    Join Date
    Apr 2003
    Location
    Englandshire, United Kingdomsville y'all!
    Posts
    1,111
    Member #
    1206
    Liked
    1 times
    Yep. Server Side Includes (SSI) will do this job for you. Take a look at Skrlin's tutorial in the Tutorials forum.

  4. #3
    Junior Member
    Join Date
    Aug 2003
    Posts
    10
    Member #
    2706
    Thanks,

    but are there other ways of doing it?

  5. #4
    Junior Member tryton's Avatar
    Join Date
    Aug 2003
    Posts
    8
    Member #
    2828
    You may want to look into using PHP and do an include that way as well.

  6. #5
    Senior Member mossoi's Avatar
    Join Date
    Apr 2003
    Location
    Englandshire, United Kingdomsville y'all!
    Posts
    1,111
    Member #
    1206
    Liked
    1 times
    Why do it another way? This is by far the easiest and is supported in ASP, SHTML, PHP and more.

    You could write a script that connects to a database, reads a field of navigation links and displays them on each page. You'd have to make a page to allow you to add and remove each link as well and post the DB code in each file.

    This is what SSI is for - and it's the easiest way by far.

    PM me and I'll take you through it if you like.

  7. #6
    Junior Member
    Join Date
    Aug 2003
    Posts
    10
    Member #
    2706
    That's ok mossoi, I got it.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:25 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com