/    Sign up×
Community /Pin to ProfileBookmark

Time Consuming

I was just wondering if there was a way to insert a line of text linking to my menu items (which will be written in HTML?)

So basically I’m asking is there a way (besides the external javascript dhtml menu thing) to alter one file which is my menu items, and that will affect all which linked to it.

I’m sorry if this is confusing, just a thought I had…

to post a comment
Full-stack Developer

5 Comments(s)

Copy linkTweet thisAlerts:
@PeOfEoJul 20.2003 — You can use frames or an iframe, or use an external css file. You are asking how to edit your menu's on all your pages at one time correct?
Copy linkTweet thisAlerts:
@CharlesJul 20.2003 — [font=georgia]The best method, and the only one that works, is to use some kind of server side include. Talk to your server people and find out what's available.[/font]
Copy linkTweet thisAlerts:
@JDM71488authorJul 20.2003 — Script Capabilities

PHP 4.3.2 with Zend Optimizer

Perl 5.6.x

Python, Tcl, C, C++

FrontPage Extensions

Private CGI-BIN directory

Well I could use an Iframe, but Im not really a big fan of those, if it comes down to it, then maybe. But what would the server side thing be?

The only reason for this is because I am constanly changing my menu items, and I have to change them on every page...
Copy linkTweet thisAlerts:
@pyroJul 20.2003 — Here's how in PHP (note that your pages will have to have a .php extention)

[code=php]<?PHP
include ("file.php"); #file.php contains the menu contents that you want included
?>[/code]
Copy linkTweet thisAlerts:
@JDM71488authorJul 20.2003 — Thanks again!!! It makes it so much easier!
×

Success!

Help @JDM71488 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...