Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member Vafudar's Avatar
    Join Date
    Sep 2006
    Posts
    3
    Member #
    14035
    After abandoning frames for CSS positioning, I find that if I need to change the menu, I have to go to every page and do the same change. Is there any way to avoid this?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,715
    Member #
    5580
    Liked
    717 times
    Use PHP Includes.

    That means that you have to either make all pages have a .php extension ...
    a good thing if they already do. If they don't, and you can't make the extensions
    .php, you can use .htaccess to process your .html and .htm files as PHP.

    You have one file (PHP script) called "menu.php".
    That one script is used, (included) on all of your pages.

    On every page, you have:
    <?php include("menu.php")?> where you want the menu to appear.

    Any change you make to "menu.php" will appear on all pages.
    You can also use PHP scripting within "menu.php" to alter the menu items
    and characteristics depending on which page is being viewed.

    Since you didn't post this in the PHP section, I'm not sure what your PHP experience is.


  4. #3
    Junior Member Vafudar's Avatar
    Join Date
    Sep 2006
    Posts
    3
    Member #
    14035
    That would be none -

    I guess the next question should properly be posted in the PHP section but since this thread already exists...

    How do I enable PHP on my XP workstatiuon where I do my design?

    Thanks,

  5. #4
    jj1
    jj1 is offline
    Senior Member
    Join Date
    Oct 2008
    Posts
    319
    Member #
    17546
    I personally use Expression for coding - this creates a master file where I can put the stuff that doesn't change from page to page (masthead, navigation, footer etc) and every time I change the master file the changes ripple through to ALL pages - for large websites this is really useful.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:31 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com