Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2006
    Location
    South Jersey
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Change one - Change all

    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.

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 -

    Template vs. External File - HELP!

  • #3
    New to the CF scene
    Join Date
    Jan 2006
    Location
    South Jersey
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    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.

    Thanks again.
    Jim

  • #4
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    <?
    phpinfo();
    ?>


    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •