This is a discussion on "Change All Pages at the same time!" within the Web Page Design section. This forum, and the thread "Change All Pages at the same time! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Change All Pages at the same time!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Change All Pages at the same time!
Hi guys, hoe you can help me out with my problem...
I will explain... I have a semi-popular cruise website which has probably the best part of 50 or 60 pages, maybe more.. First of all have a look at this edited screen grab which is here: http://www.scottishcruisers.com/pvtimages/help.jpg 1 - Now, currently, if I wanted to change a link (for example) in the navigation bar, I would need to change it manually and individually on all 50 or 60 pages. **Is there any way to have these links on a file which is linked to the nav bar? Then when I change a link in that file then that link changes on ALL pages? 2 - Under the "Current Forum Topics" area we have a javascript code which is placed in ALL 50 or 60 pages. ** Again, as above how could I use 1 file to host the javascript code so that I wouldnt need to change it on all 50 or 60 pages should i want to change the code? Thanks in advance for any advice Barry |
|
|
|
|||
|
Re: Change All Pages at the same time!
You could create a file and php include that file on everyone navigation(every page?), in this file you would have all your website links, then if you needed to change it, you just open the included file and edit the links.
Same with the JS. EXAMPLE: This would go into every single navigation
This would go inside navigationlinks.php
|
|
|||
|
Re: Change All Pages at the same time!
Then I would need to change my whole site to PHP would I not? So that the PHP code works?
|
|
|||
|
Re: Change All Pages at the same time!
Yeah, but if you're going to keep your site functioning like this, it will save you alot of time in the future.
(In FTP just rename the file from .html/.htm to .php, instead of resaving the files) |
|
|||
|
Re: Change All Pages at the same time!
Thanks mate, im just going to do that
|
|
|||
|
Re: Change All Pages at the same time!
ok ive tested it out on a test page but it seems to load really slowly?
http://www.scottishcruisers.com/miscpages/teest.php |
|
||||
|
Re: Change All Pages at the same time!
PHP and includes are good. I am doing that for a project I be working on too. tying some external files to be imported through the CMS muhahaha.. *cough*
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Change All Pages at the same time!
Quote:
PHP code can be embedded into any html page as and when required. You can still use the .html extention for your pages but to have the php in them parsed by the server, you will need to have the following entry in your .htaccess file.
|
![]() |
| Tags |
| help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript - Updating web pages with snippets from other pages | Ydot | JavaScript Forum | 3 | Jul 10th, 2007 14:38 |
| Updating numerous pages at the same time. | mikka23 | Web Page Design | 12 | Jan 1st, 2007 20:22 |
| Change from dynamic to static pages? | swiftmed | Web Page Design | 4 | May 31st, 2006 15:18 |
| Scripting Needed(adding pages to pages) | Amari | Classic ASP | 1 | Sep 4th, 2004 18:06 |
| Adjusting time from server time to local time | Tim356 | Classic ASP | 10 | Jun 21st, 2004 14:57 |