From Newsgroup: alt.html
"Jonathan N. Little" <
lws4art@gmail.com> wrote in news:10vhfm2$1j4pt$
1@dont-email.me:
If you want to define a menu in one place and have it on all sites
pages there are 3 options.
1) Server side includes
2) JavaScript defined and injection
3) Server side scripting includes, i.e. PHP, CGI, etc
My vote for Dale is SSI ("Server Side Includes"). It's robust and dirt
simple to implement.
Dale, the basic idea is you take a section of code that's repeated on
multiple pages and save it as a separate file, then repeatedly call that
file from the HTML on each of the separate pages on which it's supposed
to appear.
If anyone wants an example of it in use, see my site at www.goodells.net, which has been using SSI extensively for around 25 years. The top banner, menus, page footer, and more are not part of each page's base HTML, but
are separate pieces, each written once and reused on multiple pages.
For instance, the page footer is a single file, and when I updated the
footer from "2025" to "2026" at the beginning of the year, I edited only
a single file and the change showed up on every page. It sounds to me
like this is the kind of thing Dale is trying to accomplish.
Note: FWIW, IME the main HTML of the page doing the importing must be
named .SHTML, but the file being imported can have any eztension --
though I think it's practical to keep it consistent with it's purpose
(such as .css, .cgi, .html, or even .shtml if the secondary file is
itself going to import yet another SSI file).
--- Synchronet 3.22a-Linux NewsLink 1.2