Reply
One File Navigation
Old 04-18-2008, 06:26 PM One File Navigation
Shayman's Avatar
Junior Talker

Posts: 4
Name: Shay Jones
I am a newbie.
I want to build a side-bar navigation that is scripted so that I can enlarge the side navigation by just going to one file and not having to update every page on the site.
Can you help me?
Please keep it simple, I ain't to bright !
Shayman is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-18-2008, 06:32 PM Re: One File Navigation
nyef's Avatar
Extreme Talker

Posts: 210
Name: Lucas
Use ASP or PHP include files
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 04-18-2008, 06:54 PM Re: One File Navigation
Gilligan's Avatar
Dead Like Me

Posts: 1,572
Name: Stefan
Location: London, UK
Server Side Include (SSI) are your way to go
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-19-2008, 01:23 AM Re: One File Navigation
Webmaster Talker

Posts: 560
Haha as mentioned before in other threads recently, this topic has been VERY "hot" - as in there have been mant posts on it. I suggest putting the navigation html/css code that you want to go on every page inside a file, lets say "nav.php" then put whereever you want the navigation code to go, on the other pages the following:

<?php
include 'nav.php'
?>

See here for more info: http://us2.php.net/include/

Matt
170 Designs is offline
Reply With Quote
View Public Profile
 
Old 04-19-2008, 03:56 AM Re: One File Navigation
chrishirst's Avatar
Super Moderator

Posts: 11,885
Location: Blackpool. UK
http://www.webmaster-talk.com/coding...all-pages.html
http://www.webmaster-talk.com/html-f...ple-pages.html
http://www.webmaster-talk.com/html-f...tml#post707254
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-19-2008, 04:23 PM Re: One File Navigation
Lpspider's Avatar
Seniority Minority

Posts: 1,537
A php include (as seen in 170 designs) is the most common way and is what I'd recommend.
__________________
AdminAddict.com - Do you run a forum?
Lpspider is offline
Reply With Quote
View Public Profile Visit Lpspider's homepage!
 
Old 04-20-2008, 06:20 PM Re: One File Navigation
Gilligan's Avatar
Dead Like Me

Posts: 1,572
Name: Stefan
Location: London, UK
ASP can be used though

I prefer PHP includes though
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-21-2008, 07:52 PM Re: One File Navigation
Shayman's Avatar
Junior Talker

Posts: 4
Name: Shay Jones
Thank you for your help. This is a great forum !
Shayman is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to One File Navigation
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14020 seconds with 13 queries