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

    Navingation Menu


    I am currently building a website that has about 50+ pages.
    The problem is it has a members section which i am using www.omni-secure.com cause it has all the features i want and just protects the pages and is not a CMS.
    Anyway the problem is i need a basic Navigation Menu for these 50+ pages and the links on the menu will most likely change once a week or so. And im not going to open 50+ pages and edit the menu on each page.
    So i need a PHP or sometype of program that will allow me to login to a program and simply change the links and the look of the menu and save it and it changes it on all the pages. I dont want the pages to run through this program like a CMS. I just need like a php program that i add a code to my exsiting HTML or PHP pages and it displays it on that page, if you know what i mean hehe
    I have searched the net but i have not found any programs that can do this.

    Any help would be appriciated.

    Last edited by Aus-Designs.com; 08-06-2006 at 08:13 AM.

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Essex, UK
    Thanked 0 Times in 0 Posts
    You can use PHP includes like so...

    On each page where you want the menu to be, add in -

    <? include("navigation.txt"); ?>

    Where navigation.txt is the file with the code for your menu. Then when you want to edit the menu for every page you just edit that one file.


    Posting Permissions

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