help with coding a html page

Discussion in 'HTML & Website Design' started by chosenlight, Sep 19, 2008.

  1. #1
    hi everyone

    I am by all means not a programmer.

    I am trying to design a website with the navigation menu and the header to be constant on all my pages. I had a website about a year ago and it relied heavily on databases so I programmed it using ColdFusion and for the menu (nav bar or what ever you want to call it) i used the <CFINCLUDE> tag to kind have that that part of the website the same no matter which page the user was on.

    The website i am working on now has over 60 pages. It is a content based website and therefor i just wrote the code simply in html. I need to have the nav bar constant because when i add categories or whatever i need them to be visible on all my pages without going to every single page and changing it. Is there a way of doing what i described above using only html?? I do not feel like doing it in coldfusion or php or anything like that. Come to think about it, maybe JS, but i prefer not to do any programming :).

    Please let me know if the solution is simple or please point me to the right direction
     
    chosenlight, Sep 19, 2008 IP
  2. Sensei.Design

    Sensei.Design Prominent Member

    Messages:
    3,847
    Likes Received:
    162
    Best Answers:
    0
    Trophy Points:
    310
    Digital Goods:
    1
    #2
    I guess there is no way to do it all in html because it will always involve php to instert differend contents into one static page.

    just browse for a cms that can provide all you need and then code the design for it. this will save you time I guess
     
    Sensei.Design, Sep 19, 2008 IP
  3. mintoj

    mintoj Peon

    Messages:
    317
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3

    If you used Frontpage you could use an include file. This would be a seperate file included in all your pages so you would just need to update the include page and it would be updated in all pages.

    J
     
    mintoj, Sep 19, 2008 IP
  4. chosenlight

    chosenlight Active Member

    Messages:
    363
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Thanks guys....ill try that frontpage approach... i thought its a very common practice.
     
    chosenlight, Sep 19, 2008 IP
  5. verzent

    verzent Peon

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    But our advice is to use a professional cms package ( its opensource and FREE!!! ) like joomla or wordpress. it will help you to expand your site/business without any extra effort. if you need any help, please let us know..
     
    verzent, Sep 19, 2008 IP
  6. garrettheel

    garrettheel Peon

    Messages:
    341
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    CMS is the best option if your site is that big. Otherwise, php makes it really easy to include other pages through the use of the include() function, with little knowledge of programming required.
     
    garrettheel, Sep 20, 2008 IP
  7. pendelton

    pendelton Peon

    Messages:
    61
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I agree with the CMS option, with 60+ pages it just makes since. 10 pages or less can be easily hand coded if they are somewhat static.
     
    pendelton, Sep 20, 2008 IP
  8. classic

    classic Peon

    Messages:
    96
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    This is simple , you need to learn PHP ;)
    lets say this is header file
    header.html
    
    <ul>
    <html>
    <body>
    <ul>
    <li><a href='index.php' >Home</a></li>
    <li><a href='news.php' >News</a></li>
    </ul>
    
    HTML:
    footer.htm
    
    <ul id="nav_footer">
    <li><a href='index.php' >Home</a></li>
    <li><a href='news.php' >News</a></li>
    <li><a href='news_a.php' >News Archive</a></li>
    </ul>
    &copy; Company 
    </body>
    </html>
    
    HTML:
    news.htm
    
    <h1>Dings Dongs</h1>
    <p> Bla truc</p>
    .....
    
    HTML:
    PHP part
    index.php
    
    include('header.htm');
    include('home.htm');
    include('footer.htm');
    
    PHP:
    news.php
    
    include('header.htm');
    include('news.htm');
    include('footer.htm');
    
    PHP:
    so this is easy to code as you are just slicing the HTML peaces , dont be afraid of PHP coding :eek: as you are already doing HTML coding
     
    classic, Sep 20, 2008 IP
  9. chosenlight

    chosenlight Active Member

    Messages:
    363
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #9
    lol i wont be afraid Classic.

    I am doing it in ColdFusion. Why learn PHP (I am sure its easy if u know other languages) but I dont see the problem with ColdFusion...its nice and simple
     
    chosenlight, Sep 25, 2008 IP