HighDots Forums  

How do I apply the same navigation menu to all pages?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss How do I apply the same navigation menu to all pages? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
peewee_larkin
 
Posts: n/a

Default How do I apply the same navigation menu to all pages? - 09-11-2007 , 09:43 AM






Hi!

I'd like to apply a standard navigation menu to all the pages in my site.

Can it be done, or do I need to write the menu for all individual pages?

Thanks for any advice!

Reply With Quote
  #2  
Old   
BSW2
 
Posts: n/a

Default Re: How do I apply the same navigation menu to allpages? - 09-11-2007 , 09:51 AM






IF you are using ColdFusion you can create Include files that are expanded on each page.

Reply With Quote
  #3  
Old   
Mister Mustard
 
Posts: n/a

Default Re: How do I apply the same navigation menu to all pages? - 09-11-2007 , 09:51 AM



On Tue, 11 Sep 2007 13:43:06 +0000 (UTC), "peewee_larkin"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
Hi!

I'd like to apply a standard navigation menu to all the pages in my site.

Can it be done, or do I need to write the menu for all individual pages?

Thanks for any advice!
It can be done several ways. I'm building a site and using Project
Seven's Tab Bar Magic on an included file that contains only the main
nav. Each link has an automatically assigned ID and when a particular
page is viewed, the CSS associated with that ID is displayed.
http://projectseven.com/products/menusystems/index.htm is an example
of this happening.

You can also assign an ID on each page, such as <body id="Home">,
<body id="Products">, <body id="Contact">

Then do like this:

#Home, #Products, #Contact {
background: red;
color: White
}


Reply With Quote
  #4  
Old   
Tarvardian
 
Posts: n/a

Default Re: How do I apply the same navigation menu to all pages? - 09-11-2007 , 09:59 AM



What are you trying to do?. If you simply want to recreate the same
navigational structure across the site then the answer is yes. You can
create a nav structure and place it in each page on your site. On each
page, though, make sure the paths assigned for each link are correct.

If you are looking for a solution in which you create the menu one time and
have all the pages on your site point to that one nav structure then you
should look into server side includes. You can read up on it here:
http://httpd.apache.org/docs/1.3/howto/ssi.html. With SSI, you create the
menu one time and point each page in your site to that one particular file.
Any changes you need to make are only made once and are then reflected
through the entire site.

You should also consider looking into a menu system that automates much of
the work for you. Project VII has some excellent tools for this:
http://www.projectseven.com/products...tems/index.htm

Good luck.
John

I can be done using a server side include
"peewee_larkin" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi!

I'd like to apply a standard navigation menu to all the pages in my site.

Can it be done, or do I need to write the menu for all individual pages?

Thanks for any advice!



Reply With Quote
  #5  
Old   
Mister Mustard
 
Posts: n/a

Default Re: How do I apply the same navigation menu to all pages? - 09-11-2007 , 10:15 AM



On Tue, 11 Sep 2007 09:59:53 -0400, "Tarvardian"
<tarvardian (AT) nospamyahoo (DOT) com> wrote:

Quote:
If you are looking for a solution in which you create the menu one time and
have all the pages on your site point to that one nav structure then you
should look into server side includes.
....or any other method of includes, such as PHP.


Reply With Quote
  #6  
Old   
E Michael Brandt
 
Posts: n/a

Default Re: How do I apply the same navigation menu to all pages? - 09-11-2007 , 10:21 AM



You can read about using Server Side Includes for menus here:

http://divahtml.com/articles-tutoria...rnal_files.php

and specifically how to use divaGPS to automate "you-are-here"
highlighting of the current menu item here:

http://divahtml.com/products/divaGPS/usingIncludes.php

--


E. Michael Brandt

www.divaHTML.com
divaPOP : standards-compliant popup windows
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz

www.valleywebdesigns.com
JustSo PictureWindow
JustSo PhotoAlbum

--

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.