Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Art & Graphic Design > navigation menu on website....

navigation menu on website....
Thread Tools
rich82fox
Mac Enthusiast
Join Date: Dec 1999
Location: UK
Status: Offline
Reply With Quote
May 20, 2010, 02:47 PM
 
hi

I have built a website for my portfolio - it has a navigation menu along the left hand side.

There's only one problem - if I want to add or change the menu, then I have to do it to every single page on the website individually

is there a way to insert the navigation menu on the website - but so that I change only one file and the rest of the pages change also

I think it's called shared borders?

I'm using Adobe GoLive 5.0

rich
PowerMac G5 Dual 1.8GZ, 2GB RAM, 150 & 300 GB Internal Hard Drives, AGP Geoforce 5200 64MB Graphics Card, Superdrive.
     
Oisín
Moderator Emeritus
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
May 20, 2010, 03:21 PM
 
I have no idea about anything GoLive (never had it, never used it); but in general, this is very simple to accomplish with a tiny amount of scripting in a language like PHP or ASP. Usually, you’d create a simple HTML file that contains only the HTML code for the navigation menu, and then you’d use PHP/ASP/etc. to include that file at the right point in your other pages. That way, it’s the same file being pulled up for all pages, and any changes you make to that file will automatically propagate.

A similar (though much less clean and ‘pretty’) solution exists in Dreamweaver, if I recall correctly. Something with making one page the ‘master’, and then only allow certain parts of it to be modified when you make individual pages based on this ‘master’ page. When you alter the master page, all the other pages are then simultaneously changed. I’m sure something similar must exist in GoLive, too.
     
andi*pandi
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Offline
Reply With Quote
May 20, 2010, 04:29 PM
 
You need to make your left nav into an include file, .inc, and then link to it in your main file. I haven't done that in a while, let me see if I remember... you don't need asp or php for this I don't think...

here is a page that tells how to do it. You will need to save your html files as .shtml files instead, and hope your server can do this. It's a bit old-fashioned.

http://www.developertutorials.com/tu...601/page1.html
( Last edited by andi*pandi; May 20, 2010 at 05:01 PM. )
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:50 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,