🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.javascript
2 messages
2 total messages Started by Dale Tue, 10 Nov 2026 17:51
menus in one place ?
#30
Author: Dale
Date: Tue, 10 Nov 2026 17:51
11 lines
1541 bytes
I am looking into having my Main Menu and any Submenus in one file so I 
don't have to edit all files when I change the Menus.

https://www.dalekelly.org/

Will be browsing around.

-- 
Lore? -> https://www.dalekelly.org/
Re: menus in one place ?
#33
Author: Thomas 'PointedEars' Lahn
Date: Wed, 18 Nov 2026 23:29
24 lines
2052 bytes
Dale wrote:
> I am looking into having my Main Menu and any Submenus in one file so I 
> don't have to edit all files when I change the Menus.
> 
> https://www.dalekelly.org/
> 
> Will be browsing around.

While it /could/ be done with Server-Side Includes, it is best done with
server-side scripting nowadays.  I would prefer PHP, but YMMV.

It /could/ also be done with client-side scripting at the expense of
interoperability and some maintainability: In every HTML document that
needs to contain the main menu, include a `script` element that inserts
the main menu.  I recommend against that.

You are probably best off using a CMS that generates that menu for you,
like WordPress (which is PHP-based).

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads