Sharing the same navigationbar

Discussion in 'Web Design and Development' started by chameleon81, Aug 7, 2009.

  1. chameleon81 macrumors 6502

    Joined:
    May 16, 2006
    #1
    Hi,

    How is it possible to share the same navigation bar on every single page of the site without coding every single page.


    I found SSI feature which uses include method.

    Is there any other method for this ?


    Thank you
     
  2. Cerebrus' Maw macrumors 6502

    Joined:
    Mar 9, 2008
    Location:
    Brisbane, Australia
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
  4. chameleon81 thread starter macrumors 6502

    Joined:
    May 16, 2006
    #4
    Hi,

    Isn't possible to achive this without using server side languages?


    I'm looking for a pure HTML solution if there is any.


    Thank you
     
  5. Cerebrus' Maw macrumors 6502

    Joined:
    Mar 9, 2008
    Location:
    Brisbane, Australia
    #5
    Unfortunately, what you require is not possible in pure HTML, unless you paste your coding in directly into each of your files. HTML is simply a markup language, telling your browser how content should be displayed. The only real "programming" it can do are conditional statements for browser detection

    Although it may seem daunting, server-sided languages are quite easy, weather it is the .net framework like ASP, or open sourced like PHP etc. There are plenty of tutorials around, including at php.net, w3schools.com, and tizag.com.
     
  6. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #6
    The only alternative is frames, but they are an old technique that is kind of frowned upon anymore and have issues of their own.
     
  7. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #7
    If you have Dreamweaver you could use templates.

    There might be other suites out there with similar features.

    I use php myself... ;)
     
  8. Menge macrumors 6502a

    Menge

    Joined:
    Dec 22, 2008
    Location:
    Amsterdam
    #8
    You could look into a Ruby based, templating/baking engine called Jekyll.
    It basically allows you to set up templates and re-use stuff so you can bake them and upload the baked results.
     
  9. chameleon81 thread starter macrumors 6502

    Joined:
    May 16, 2006
    #9
    Thanks guys.

    I ll check Dreamweaver templates for right now.

    Then hopefully I will try to learn PHP
     

Share This Page