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

Posts: 4
Name: Shay Jones
Trades: 0
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, 07:32 PM Re: One File Navigation
nyef's Avatar
Ultra Talker

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

Posts: 1,632
Name: Stefan
Location: London, UK
Trades: 0
Server Side Include (SSI) are your way to go
__________________
DoThatDesign.com - Professional Website Design - FREE Quotes!
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-19-2008, 02:23 AM Re: One File Navigation
Webmaster Talker

Posts: 560
Trades: 0
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, 04:56 AM Re: One File Navigation
chrishirst's Avatar
Super Moderator

Posts: 22,225
Location: Blackpool. UK
Trades: 0
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!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-19-2008, 05:23 PM Re: One File Navigation
Lpspider's Avatar
Seniority Minority

Posts: 1,535
Trades: 0
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, 07:20 PM Re: One File Navigation
Gilligan's Avatar
Dead Like Me

Posts: 1,632
Name: Stefan
Location: London, UK
Trades: 0
ASP can be used though

I prefer PHP includes though
__________________
DoThatDesign.com - Professional Website Design - FREE Quotes!
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-21-2008, 08:52 PM Re: One File Navigation
Shayman's Avatar
Junior Talker

Posts: 4
Name: Shay Jones
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.14465 seconds with 13 queries