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
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
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
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..
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.
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.
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> © 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 as you are already doing HTML coding
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