| Web Design Lobby Forum for general web design issues not specific to scripting or graphics. |
11-15-2004, 03:53 AM
|
#1 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
Loading a menu into your pages
I was just wondering hoW I could load one menu but into a table column if I made an external links page saved as .htm so I only need to change the one file to make all the pages menu's change without having to re-make every page, but so search engines can find each page as well.
Thanks!
|
|
|
11-15-2004, 08:05 AM
|
#2 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: England.
Posts: 6,197
Latest Blog: None
|
PHP Includes :
Code:
<?php require("menu.htm"); ?>
|
|
|
11-15-2004, 08:27 AM
|
#3 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
no php on my host & menu's
My host can't take php includes, so how can I make one menu to show on every page, without frames?
|
|
|
11-15-2004, 08:31 AM
|
#4 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
*Merged these threads. Please keep all posts about the same issue in one thread.
|
|
|
11-15-2004, 08:38 AM
|
#5 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: England.
Posts: 6,197
Latest Blog: None
|
Quote:
|
Originally Posted by Jason
My host can't take php includes, so how can I make one menu to show on every page, without frames?
|
Well it's harder without any decent modules installed on the server...
If you have ASP, the code is :
Code:
<!--#include file="menu.htm"-->
Other than that, I dunno any other ways personally.
|
|
|
11-15-2004, 09:30 AM
|
#6 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
Jazzee - Sorry,
DaveyBoy- Thanks anyway
|
|
|
11-15-2004, 09:35 AM
|
#7 (permalink)
|
|
v7n Mentor
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
|
If SSI is supported by .htm files on your server try the following.
<!--#include virtual="/includes/menu.htm"-->
If it's not you can try renaming the .htm files to .shtml. The .shtml is the Server Side Include extension. But many servers are configured to allow .htm(l) files to use SSI include files.
If none of these work you could use a javascript file for the menu as a workaround but not ideal.
imaginemn
|
|
|
11-15-2004, 10:34 AM
|
#8 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: England.
Posts: 6,197
Latest Blog: None
|
Quote:
|
Originally Posted by Jason
Jazzee - Sorry,
DaveyBoy- Thanks anyway
|
No prob.
And don't apologise to Sara, she NEEDS TO CHILL OUTTTT!!!! 
|
|
|
11-15-2004, 07:45 PM
|
#9 (permalink)
|
|
Contributing Member
Join Date: 05-24-04
Location: Sydney, Australia
Posts: 503
|
I found this page http://www.freewebmasterhelp.com/tutorials/ssi to be a great help when learning SSI.
__________________
FREE Unique Health/Fitness/Nutrition Articles. PM me!
|
|
|
11-15-2004, 07:48 PM
|
#10 (permalink)
|
|
Inactive
Join Date: 11-10-04
Posts: 23
Latest Blog: None
|
Use Dreamweaver and make a template file .dwt it's called.
Make a new clean .htm fil
Insert a table 1x3 - then insert a table 1x1 into that. Mark that 1x1 table up - and go to insert/template objects/editable region - then name it "Write here" for instance.
Save it as a template by going to "file/save as template" name it whatever you want.
Now, here's the smart part. Make the menus, graphics and whatever you want in the template .dwt file. (outside and around the "Write here" green thingie) Save it.
Then go to "new" - choose "template" and then "site: xxx" - and then the template you want to use.
Voila... you got a new .htm file which you can only edit in the "Write here" option you made before. the menu and surrounding stuff is locked. Put your text there. Remember, anything you put in this area only affects that one .htm file.
If you want to edit the menu or graphics laters, then you just open the .dwt file and edit that, then save it and it updates all the pages which belong to that specific template. then it's just to upload all the pages and it's done.
Got that? Yah, you did.
Enjoy,
Martin
|
|
|
11-15-2004, 07:51 PM
|
#11 (permalink)
|
|
Contributing Member
Join Date: 05-24-04
Location: Sydney, Australia
Posts: 503
|
On a side note, what implications does SSI have on SEO, if any?
Also, if you were to use SSI to call upon three pages (nav bar, footer, adsense page) is this putting too much load on the server?
__________________
FREE Unique Health/Fitness/Nutrition Articles. PM me!
Last edited by dcristo : 11-15-2004 at 07:56 PM.
|
|
|
11-15-2004, 08:12 PM
|
#12 (permalink)
|
|
Contributing Member
Join Date: 05-24-04
Location: Sydney, Australia
Posts: 503
|
Answered my own question, Aaron had this on his blog - http://www.seobook.com/archives/000216.shtml
__________________
FREE Unique Health/Fitness/Nutrition Articles. PM me!
|
|
|
11-15-2004, 08:50 PM
|
#13 (permalink)
|
|
Contributing Member
Join Date: 05-24-04
Location: Sydney, Australia
Posts: 503
|
Some advice would be greatly appreciated... Im trying to implement SSI following Aaron's blog article above.
However, I run into problems when editing the .htaccess file. When I add the code to make the server parse htm files as shtml so I dont have to rename all my htm files, it creates a problem with my phpbb forum.
I have another .htaccess file located in my forum directory to do other things.
Creating the new .htaccess file in the root seems to be conflicting with the other file, causing my forum to be inaccessible (404 error)
Anyone encountered this problem?
__________________
FREE Unique Health/Fitness/Nutrition Articles. PM me!
|
|
|
11-16-2004, 05:49 AM
|
#14 (permalink)
|
|
Contributing Member
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,195
Latest Blog: None
|
Thanks everyone for your help regarding this topic, but I did need to apologise to Sara
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 02:41 PM.
© Copyright 2008 V7 Inc
|