Dreamweaver menu bar question ... noob

Associate
Joined
26 Nov 2006
Posts
1,091
Hi,

I've created my web site in dreamweaver a few months ago and it doesnt look too bad, however what I want to do now is add a new menu item.

What I did originally was create all the pages I wanted then created some styled buttons in Photoshop for each menu and added them to each web page along with links, is there an easy way to build up 1 setof menus using the images and get that to populate all my pages? then when I want to add another page I simply add it in 1 place?

I've used netfusion before for large sites and it works perfectly but I wanted to use dreamweaver as it gives me more flexibility over what I want it to do.

thanks
 
Im note sure if I understand what you wanted but Im understanding it as, you want to add a menu on all pages from one place, and I've started doing that by making a php file with a list of echo() commands then when ever I want to add it to a page I just use the php command require_once("menu.php") which loads the menu onto the page.

This way I just have to edit the menus on my site in the one place.

Gaunt
 
Hi,
I'm not using PHP at the moment, what I want to do is create a file (HTML or whatever) that allows me to line up and edit all my sub-page links/icons in 1 place(going across the page). Then on all my other pages (sub pages) it references this 1 file and pulls in the menus i.e. [HOME] [HOME USERS] [BUSINESS USERS] [ONLINE STORE] etc.

so if you go to home users , it pulls in the same menu as home or business etc, its to save me having to add 1 new page manually to every page I have created.

I think your PHP file idea sounds about the same, but not sure how to do it in HTML .
 
I think your PHP file idea sounds about the same, but not sure how to do it in HTML .

The easy answer is that you can't.
You obviously don't have a CMS so I would go with the PHP solution myself.
If for some reason you can't use PHP, the ghetto way to do it would be to keep it static html like it is and then just do a 'find and replace' across all your pages. Not sure if Dreamweaver does it but there are programs that can do a batch find and replace across all files in a folder.
 
Last edited:
Back
Top Bottom