Sidebar

Discussion in 'HTML & Website Design' started by melol2, Sep 23, 2006.

  1. #1
    I want to make a sidebar that is easily editable for http://www.sandsword.com What I was thinking was, make a page named sidebar.html and on every page it will show sidebar.html on the left hand side of the screen. What HTML would I need to do this? Right now I need this because whenever I add a new page, I have to go to every page individually and add that link.
     
    melol2, Sep 23, 2006 IP
  2. melol2

    melol2 Active Member

    Messages:
    511
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #2
    noone has any idea?
     
    melol2, Sep 23, 2006 IP
  3. EcJughead

    EcJughead Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I would build a navigation element with javascript/css instead.
     
    EcJughead, Sep 25, 2006 IP
  4. andheresjohnny

    andheresjohnny Well-Known Member

    Messages:
    964
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    120
    #4
    If your site can run php then you could place all the sidebar code into a separate file. Then you could "include" this code in every one of your webpages with a single line of code (PHP Include). This way these pages would automatically be updated each time you changed the sidebar code.

    If you can't or don't want to use php, there are tools available that can scan/replace entire blocks of code across multiple files and subdirectories. You would still have to initially add the sidebar code to each file, but afterwards you should be able to change the code automatically using one of these tools.

    Before I used php, the scan/replace tool I used was called TextWiz.

    Good luck.
     
    andheresjohnny, Sep 25, 2006 IP
  5. bellweather

    bellweather Peon

    Messages:
    214
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I would agree with the include.

    I use Simple Search-Replace and it handles up to 30,000+ pages at a time.

    If you need help with what to put ,etc.. just let me know by PM.
     
    bellweather, Nov 13, 2006 IP