/    Sign up×
Community /Pin to ProfileBookmark

Hi There;
This is my first post here as I just found this place and am hoping someone can help me. I am not sure which forum to post this question on but I will try here.

I have created a online procedure manual that has 80 plus pages. Basically what it entails is a front page with a ton of links, each page links directly back to the link page with a home button at the bottom of the page. What I would like to do is to create a menu that is categorized and when you highlight each category the page titles pop out. That is not really the issue, as I have the menu created already.

What I really really need help with is figuring out how I can have a css page with all of the formatting in it, a second page with only the menu on it. So that every page can call the menu page. I don’t know if I am making sense but I want to only have to update the links for the menu in one spot not have to go into 80 + pages everytime a change is made or something is added. I have no clue how to do this and would appreciate any help you can provide. Also I do not have much control over the server side of things since someone else is doing the uploading, etc.

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@hsdhmanApr 25.2006 — If you mean what I think you mean, and you want to have all the css in one file, and have each page use that file, then do the following:

In the <head> of each page, put this line, telling it where to find the css file:

<link rel="stylesheet" type="text/css" href="style.css" />

where "style.css" is the name of (or path to) the css file. Fill that css file with all your formatting, and every time you change it, the appearance of every page will be changed as well.
Copy linkTweet thisAlerts:
@hsdhmanApr 25.2006 — For a more detailed explaination, visit

[URL]http://www.w3schools.com/css/css_howto.asp[/URL]

And read the section on "External Style Sheets"
Copy linkTweet thisAlerts:
@countrygirlauthorApr 25.2006 — Right, but how do I make a page with a menu on it and make that menu appear on every page only having to edit the menu on the menu page?
Copy linkTweet thisAlerts:
@TiGGiApr 25.2006 — one way is if you use IIS and have control over it you can specify site-wide header or footer page where you can place your menu.

Apache might have this also but I don't know!

Another way is to use serverside include, which means that by adding line of code you can include content of another page automaticly.


For ColdFusion it would look something like this: <cfinclude template="page.cfm">

so page.cfm would be your link page.

So if you have serverside language such as ColdFusion, ASP, PHP,... you can do this.
Copy linkTweet thisAlerts:
@countrygirlauthorApr 25.2006 — The server uses PHP which I am not good with, I am more familiar with ASP. Sounds like the only way to do this is with SSI, do you have any info where I could find a fairly simple tutorial on how to do this?
Copy linkTweet thisAlerts:
@TiGGiApr 25.2006 — this would be for PHP:

<?php

include("links.php");

?>
Copy linkTweet thisAlerts:
@countrygirlauthorApr 25.2006 — It looks like I can do this all in HTMl as long as I change the extension on the files to shtml without having to worry about PHP or ASP, but that is what I am getting from the tutorial I am looking at from smartwebby. That would be way easier
Copy linkTweet thisAlerts:
@lahmayesApr 25.2006 — as long as server-side includes are configured on your server (chances are good that they are) you can just use

[CODE]<!--#include virtual="/menu.html" -->[/CODE]

just paste the code for your menu in "menu.html" (or whatever you decide to call it) and when the page loads it will replace the include call with the actual code in the menu.html file. I highly recommend using "#include virtual" instead of "#include file" for security reasons.
×

Success!

Help @countrygirl 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.17,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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