View Full Version : Change one - Change all
01-03-2006, 04:39 PM
I am redesigning our school districtís web site. What I would like to do is set it up so that I can make changes in the navigational bars one time and have it go across the whole site. Iím thinking that I could use CSS but I am having problems trying to figure out how to do it. I have done a mock-up of what we would like for the pages to look like. That can be found at http://www.woodburysch.com/mockup/mockup.htm. What we would like to set up is head and navigation. Can anyone help me or set me on the correct path.
01-03-2006, 04:55 PM
CSS can be used to change the style of the menus, but it won't allow you to change the actual content.
You need to use server side includes really. I wrote a post on using them yesterday so to save me typing it out again, read the following -
01-03-2006, 06:32 PM
Thanks for the information. I have been doing a little reading into php but I really don't understand how to load it on our district server and how the rest works. Could you please give me some refences (both electronic and paper) so that I could learn more.
01-03-2006, 06:35 PM
Well firstly you need to find out if your host supports PHP. To test you can simply save the following as a .php file and navigate to it. If you see a page of info then you can use PHP.
If you do have PHP, then just used the following to include whatever code you want at that point in the page.
<?php include("menu.txt") ?>
If you don't have PHP - as mentioned in the post above, you can use .shtml files. Like you would with PHP includes, save the menu section (or the part you wish to use on each page) as a file (eg. menu.txt), then link to it. The page containing the include has to be saved as .shtml.
<!--#include virtual="menu.txt" -->
There isn't much more to it than that.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.