Question:
How do you make all your pages have the same menus without having to edit each page?
hwco08
2006-03-23 18:31:44 UTC
I have a website I have not yet put online. I have written a webpage that was previously in frames, but I want to move to a page that has all the information on one page, to facilitate bookmarking.

How can I make it so I have a file that I can change, ie a menu, and see that change on all my pages without having to go through and manually change all of them?
Four answers:
Web Maven
2006-03-23 19:09:20 UTC
Three choices are:



(1) PHP



(2) On an Apache server, SSI (Server Side Includes); on a Windows server, ASP.



(3) JavaScript (which has a major disadvantage since it is client-side rather than server-side)
sczechj
2006-03-24 15:58:53 UTC
Web maven is right, but made it very complicated.



Creating a Server Side Include is easy; Create an HTML page with all of the items you want to show up on each page. After you have saved it, open it in notepad and take off the Header and footer tags, and save the file with .inc instead of .htm or .html.



When you're building a page, add the tag where you want the menu to show up - the tag works in tables, but make sure that you don't have the graphics larger than the cell size - it makes things go all funky.



(It has been a while since I've done this, so you may want to double-check to make sure the include tag is correct)



Good luck!!!
2016-11-12 06:39:07 UTC
You create a template or templates of the entire lot that are an identical on each and every web page. that is often header, menu, footer and per chance the overall web page format and advert placement. then you definately use own domicile web page code to include the templates with the require command. once you want to make a replace, you in common words replace the template report and each and every thing else ameliorations immediately. in case you want to modify some thing like fonts in the course of the web web site, that is executed with cascading style sheets. For a historic past photo, it ought to be even extra reachable. in basic terms get rid of the former one and delivers the hot one an identical call.
Erick
2006-03-23 20:27:21 UTC
If you are using an HTML editor to create the pages within your website try looking into a site template. Dreamweaver has such a feature and other editors should as well. You can create a template that automatically is applied to any new page that is attached to it. If you add a new menu choice then you only need to change the template and all the pages that are based on it can be updated with just a click!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...