Gas Suppliers - Free Advertising - Boston Attractions - Loans - Gas Suppliers

PDA

View Full Version : How To Make A Website Menu?


Thamelas
Apr 5th 2008, 11:31 am
Ok guys. I am still relatively new to website design.

Here is my issue:

Is there a way to create a menu that will display on all pages, but you can edit it in one place without having to edit each individual page? I don't want to use frames either. Div tags maybe?

Mooseman
Apr 5th 2008, 12:00 pm
Well if your server allowes server side programming (e.g PHP, ASP etc) you can make a file with the menu and include it on every page.

I'm sure this have been discussed several times so you might just search this forum...

EDIT: Have a look here: http://forums.digitalpoint.com/showthread.php?t=223056&highlight=server+side+includes :)

Kirkbride
Apr 5th 2008, 12:09 pm
It's possible to do, but if you're new to web design it might be a little too complex of a problem to tackle. It's good that you're thinking this way though.

Div tags won't help. You'll probably have to use a scripting language like PHP or ASP -- depending on what's available on your server. Or maybe if you're using Dreaweaver you can use their library files feature.

It'll help get your question answered if you can say something about what kind of web server you're on and what kind of software you might be using.

falguni1
Apr 5th 2008, 12:10 pm
use a cms there are many.

Thamelas
Apr 5th 2008, 12:14 pm
I have hosting with godaddy. Its a linux server. I haven't seen a CMS I was really happy with though. I want to make adsense blend in with the site, so I'm going to modify a template I've made. I just want to resolve this menu issue for this and future projects.

raymondgill08
Apr 5th 2008, 12:34 pm
Well if your server allowes server side programming (e.g PHP, ASP etc) you can make a file with the menu and include it on every page.

I'm sure this have been discussed several times so you might just search this forum...

EDIT: Have a look here: http://forums.digitalpoint.com/showthread.php?t=223056&highlight=server+side+includes :)

I agree, PHP include would be the way to go, especially with a linux server.

Yuppie08
Apr 5th 2008, 3:26 pm
Use a PHP include for your page is your not using like Wordpress ro any CMS

Divide your page into Header, Content, Footer.

Dan Schulz
Apr 5th 2008, 10:01 pm
Well if your server allowes server side programming (e.g PHP, ASP etc) you can make a file with the menu and include it on every page.

I'm sure this have been discussed several times so you might just search this forum...

EDIT: Have a look here: http://forums.digitalpoint.com/showthread.php?t=223056&highlight=server+side+includes :)

Here's a direct link to the post (http://forums.digitalpoint.com/showthread.php?p=2145250#post2145250) in question, Mooseman. :)

(Whoa, a Stewie Griffin convention!)

Farhan5
Apr 6th 2008, 1:50 am
i think u can do it by creating a script menu..and save as a script file and then use thins file`s address in all pages...when u will edit this script and change any thing..all pages will automatically show changes

Dan Schulz
Apr 6th 2008, 6:57 pm
i think u can do it by creating a script menu..and save as a script file and then use thins file`s address in all pages...when u will edit this script and change any thing..all pages will automatically show changes

If you're thinking of using JavaScript for this, you COULD do that, but if you do it won't be accessible to search engines, people with disabilities, people who have (or want) to use the keyboard for navigating through a Web site, people using a browser that doesn't support or have JavaScript enabled, and those who have a JavaScript capable browser that just happened to have the script stripped by a firewall before receiving it.

In other words, don't do it that way.

dazw1
Apr 9th 2008, 12:16 pm
create an 'include file' a page which holds the code for the menu then just reference it in all pages. if you need to change menu, you just change that one menu page and all the others will reflect the changes