Universal Menu?

I maintain a huge web site composing of over 20 internet pages. The site is often updated with an innovative page, I am racking your brains on how to produce an acutal course-plotting single page to become linked to all of the pages. The navigation bar is often a series of links (images) that go lower the left side with the page, the array is consistant. I have made CSS style sheets for your main layout nonetheless I cannot find anything that should tell me steps to make a single page while using page links so that updating consists connected with one page in lieu of 20. Is this possible and when so could people tell me how.

Many thanks!

Yes, employing PHP.

Because you didn’t post this while in the PHP section, I’m undecided how much
you understand about PHP. It involves scripting (or programming) the item so that
one particular script (file) is included on most of pages. The script additionally handles the
various highlighting along with link control determined by which page can be being
displayed at this time.

Widening further with PHP, you can also have A SINGLE page (like index. php) that
is a base template for everyone other pages. Another pages don’t definitely exist,
but are recorded as content in which gets displayed determined by which page
is actually viewed.

Challenging to explain, so see this illustration:
http: //www. palosantodesigns. com/

Mouse in the links and see how this really is just 1 archive that modifies the content.
The navigation is additionally just 1 file that is certainly included with every dynamic page.

hmmm ok that is the jump start MY SPOUSE AND I needed. I will take a look. I know a little bit about it. Thank you so much.

Finished . the mlseim was preaching about is php comprises.
There’s a good tutorial I located here or you can actually search for the idea.

However the code is easy, put this code within your index file where you would like the menu to get. (say index. php):


< php  include("menu. php");   >

This is assuming for you to wrote the menu while in the menu. php report.

Mlseim has the top solution and you possibly can mix php with html unless you know much about php (like myself). Utilize the " include" php code where you desire the menu appearing, and the file extension needs to be php. Google " php include" to learn more.

If you are using a program who has " save when template" capabilities, then which is another alternative. We have Dreamweaver which allows me for making a basic disguise of my internet site with navigation, header, footer, and a content area, then I’ll save it being a template. Then when i create the alternative pages, I can apply that template that will my page after which it add whatever content I’d like to see in the subject material area I set-aside. When I do changes towards the template, it will change in most my pages.

Incidentally, 20 pages is not a large web site! I use using these services in DW on the 85 page site but it still only will take maybe 5 minutes to update that files and publish to server. Php may possibly take about 20 seconds to do the same matter!

This can be such a popular question it need to be listed at the top part of the site on this web-site.

Because this may not be the PHP fraction of WDF, I don’t want to get
in to specific PHP debate, but a easy mention to RiverSong in which you
can request that webhost server procedure all. html plus. htm files
because PHP scripts. That means its not necessary to change ones file extensions
to. php

That file extension situation ". html that will. php" is something that scares plenty of people
into thinking they have to completely turn their website inverted to
help make massive changes… when the truth is, you can use your existing ". html" records.

Not all webhosts help you define this inside. htacess file, nevertheless , you can
experiment and decide if in fact, you can make this change towards the server.

You almost certainly already have its own file in your current directory called ". htaccess"
If you undertake, open it along with notepad and placed this line at the bottom:

AddHandler application/x-httpd-php5. php. html page. htm

Save it along with upload it back internet.

Normally, create the record called. htaccess employing Notepad.

Right now, pick an. html file and also insert this somewhere in the center of your HTML value:
< php reveal " Today is: ". date(" M-d-Y" ); >

Once you display your website page, you should see the particular date.

Note you can only make this particular work online. PHP won’t execute on your PC
if you don’t have your own server. So you’ll want to upload it ahead of running it.

Thank you everyone for your replies! I thanks. I am studying through to php and the solution I needed. The include makes it very easy although I will be having a certain amount of a problem getting my dreamweaver to get together to my ftp on my intended for… I don’t recognize why. While you might be right, 20 internet pages isn’t large, it is huge for those who have to change every one of them by hand… POST can’t imagine doing that with A HUNDRED pages… even using text and paste that would be a huge task. I will look into the option on this subject host to learn if I can perform as you propose melseim. Thanks yet again, I had simply no idea where to go to accomplish this but figured there needed to be a way!

I’m not just a PHP programmer, and I believe that the guidance on using PHP will continue to work great, but I’ve done a similar thing with a simple Server Side Incorporate file.

Place the code on your common navigation system right simple text document that has a ". inc" report extension. (although you can probably use. txt,. html page, etc. )

Telephone it " direction-finding. inc"

Place a simple commented line instead of the navigation value on every page who has it:

<! –#include virtual=" direction-finding. inc" –>

Rename all your HTML files along with an ". shtml" report extension, and you ought to be good to visit.

Your server will likely need to support it, but every sponsor I’ve worked with in the past few years provides by default. Even the cheap models.

When you’ll want to update your routing, update the include file also it will flow throughout the entire site.

I believe that this solution is not that much different versus the PHP includes, nonetheless for someone with out PHP experience, this is often a little easier for you to swallow.

I’ve find out about the Dreamweaver themes, but I utilize BBEdit, and for just a 20 page web page, it’s probably in the same way easy to carry out a mass seek and replace any changes for your navigation system. I believe Dreamweaver has similar function.


SSI (Server Part Includes) are fine to make use of too.

The truth is, if someone will use them as well as change their
report extensions to. shtml, why don’tyou just use PHP along with leave your
extensions only (. htaccess to re-write the rule).

Using PHP does more than just " include"…
It opens the home to endless scripting opportunities.

Update: Howdy everyone, once again I’d prefer to thank everyone thus to their help. I have as well as done in php which is running great. I am not likely to move it to actually usage until MY PARTNER AND I return from vacation the following month as it is just a customer’s site and if they have troubles… oh no! oh yea my! They do revise the site independently sometimes so I recently feel like I has to be around uncase some thing happens.
Finally an area that the members actually know what they are discussing and are useful! Thank you all over again.

I’ll do even more research on the actual PHP solution and also. htacess possibilities.
Thanks for any tip.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *