🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.infosystems.www.authoring.html
Article #10

Re: main menu on w3.org

#10
From: Arno Welzel
Date: Wed, 28 Oct 2026 15:22
42 lines
2686 bytes
Dale, 2026-10-28 15:59:

> https://www.dalekelly.org/indexCopyagain.html
> 
> I got the menu showing up
> 
> just have to put the new menu on all of my around 50 pages unless there 
> is an easier design, something like having the menu only on the home 
> page or CSS file
> 
> to do that I would put the new CSS into the CSS file instead of HTML 
> <style> location, tried but didn't work
> 
> https://www.dalekelly.org/mystyle3.css

You should think about using either service side includes to include the
menu on every page where you need it:

<!--#include file="menu.html" -->

Also see:

<https://en.wikipedia.org/wiki/Server_Side_Includes>
<https://httpd.apache.org/docs/current/howto/ssi.html>

Or use PHP and the following snippet:

<?php readfile('menu.html'); ?>

Depending on where the file is relative to the page, you may also have
to specifiy the full or relative path of the file.

For PHP all pages also need to be served with PHP which means you server
needs to support PHP and the files need to have the extension ".php"
which may also need to update existing links and maybe add a redirection
rule in .htaccess to change incoming requests from ".html" to ".php"
where needed.


-- 
Arno Welzel
https://arnowelzel.de
Technical Details
Message-ID: <11bt3vl$2hib6$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <OTKdnemmV9HczXz3nZ2dnZfqn_adnZ2d@supernews.com> <wGadnSzvn6CYc3z3nZ2dnZfqnPUAAAAA@supernews.com> <wGadnS7vn6CAcnz3nZ2dnZfqnPWdnZ2d@supernews.com> <yN-dnS0ar9ElkH_3nZ2dnZfqn_cAAAAA@supernews.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Arno Welzel <usenet@arnowelzel.de>
Newsgroups: alt.html,comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: Re: main menu on w3.org
Date: Wed, 28 Oct 2026 16:22:28 +0100
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <11bt3vl$2hib6$1@dont-email.me>
References: <OTKdnemmV9HczXz3nZ2dnZfqn_adnZ2d@supernews.com>
 <wGadnSzvn6CYc3z3nZ2dnZfqnPUAAAAA@supernews.com>
 <wGadnS7vn6CAcnz3nZ2dnZfqnPWdnZ2d@supernews.com>
 <yN-dnS0ar9ElkH_3nZ2dnZfqn_cAAAAA@supernews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Oct 2026 15:22:30 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2672998"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19fXsSGtRm8wj/gHOIp+nQ5mZPus3U28ic="; posting-host="addb5095ca1fc461609da840df1952d5"
Cancel-Lock: sha1:TB40ZKGWNsk6hL78kiUOlX2hn2A= sha256:fQN75LEnO7npgt9135+E9eG0+pI/1Rx7gWU8Ea0Eqlw=
	sha1:9O2QTpfOBfoEs8m0LP/ZCbS2fxg= sha256:ktbzF/U2Nl1MZXxinCVUwBtJh9byQdQ3HBK9oxbOhg0=
Content-Language: en-US, de-DE
In-Reply-To: <yN-dnS0ar9ElkH_3nZ2dnZfqn_cAAAAA@supernews.com>