Results 1 to 2 of 2

Thread: Navigation menu advice

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    3

    Navigation menu advice

    I was hoping someone might be able to direct me to any resources that could help with the following task I have set myself (much searching on google etc has yet to produce one).
    I am creating site that has quite a few pages and would like the navigation menu to be an external piece of xhtml code that can be imported so that, say, I need to add or subtract a link - I do not have to do it across upwards of 25 pages. I'm aware that PHP has an include() function that would be useful, BUT, this is not the preferred option (as is iFrames). How else can I import this menu list into each .html file?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Navigation menu advice

    1) Frames: bad option.
    2) iFrames: bad option.
    3) Server-side includes (SSI): good option. Literal include of another document.
    4) Simple include() in your favourite server-side language: moderate option. Does not preserve separation of concerns.
    5) Server-side language with templates, include in the template language: good option.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width