Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Website navigation changes to all pages at once


Website navigation changes to all pages at once

Reply
  #1 (permalink)  
Old 11-02-06, 08:39 AM
Cice Cice is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Website navigation changes to all pages at once

I have a client that has hundreds of pages, but when I have to add or subtract a navigational element, I have to go thru each page and that is time consuming. How can I make one blanket change to change the nav on each page? Will this require asp, php? What is the code? Thx in advance.
Reply With Quote
  #2 (permalink)  
Old 11-02-06, 12:28 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Add a php include to each page referencing a single, common file that has the links and nav code in it. You don't even need to change the extensions of your pages, they can stay .htm or .html or whatever. The only thing you'll need to do is to add an .htaccess file to tell the server root or directory so it'll parse .htm pages as PHP, like this:

AddType application/x-httpd-php .php .htm .html

You can make a change in the common file and all the pages will reflect the change immediately.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #3 (permalink)  
Old 11-04-06, 12:32 AM
Christian's Avatar
Christian Christian is offline
Community VIP
 
Join Date: Mar 2005
Location: ProgrammingTalk
Posts: 2,449
Thanks: 0
Thanked 6 Times in 5 Posts
You can also use SSI(Server Side Includes), but the method End User suggested is the best way to do this.
__________________
:: ImperialBB :: New version in the works! :: http://www.imperialbb.com ::

:: Have a question about the board? The Rules? An Infraction/Warning? :: Contact Form ::
Reply With Quote
  #4 (permalink)  
Old 11-11-06, 11:16 PM
wambulance wambulance is offline
Newbie Coder
 
Join Date: Sep 2005
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
you should do what end user said use this where u want to place your nav

<?php include("Filename.php"); ?>

all HTML should be in that file
Reply With Quote
  #5 (permalink)  
Old 11-13-06, 08:33 PM
reportingsjr reportingsjr is offline
Newbie Coder
 
Join Date: Aug 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Or use an iframe or frame.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Camera Review Website PR2 22,800 indexed pages! ichibanda General Advertisements 0 11-12-05 05:17 PM
Complete ringtone website with top features! rossy790 General Advertisements 6 06-29-05 08:06 AM
Complete ringtone website for sale rossy790 The Lounge 0 03-04-05 06:01 PM
SEO Expert Available nakulgoyal Job Offers & Assistance 2 08-14-04 12:38 PM
FS: Prozilla Memberships (Turnkey Sites) - $10-15 less than Retail! rockergrrl General Advertisements 0 08-11-04 12:05 AM


All times are GMT -5. The time now is 08:55 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.