...

View Full Version : Question regarding web site menu



dejansoftware
05-26-2009, 09:34 AM
Hi,

I have to upgrade old web site, the one big problem is menu on the right side.

It has at least 20 menu buttons - pages, and when they need to do simply update, they need to update each (20) pages.

I would like to put something, which will remove that each page has it's own menu, something like single file to update and that will reflect to all pages.

What is the best thing to do, can you give me some directions, links, or any help.

I can provide more info, just let me know.

Thanks

abduraooft
05-26-2009, 09:42 AM
What is the best thing to do, can you give me some directions, links, or any help. Write the html code for your menu in a file, say menu.htm or menu.txt and then include this file wherever required using a server side script, say in PHP

<div id="sidebar">
<?php
include "menut.txt";
?>
</div>

frankle
05-26-2009, 11:20 AM
Hi,

I have to upgrade old web site, the one big problem is menu on the right side.

It has at least 20 menu buttons - pages, and when they need to do simply update, they need to update each (20) pages.

I would like to put something, which will remove that each page has it's own menu, something like single file to update and that will reflect to all pages.

What is the best thing to do, can you give me some directions, links, or any help.

I can provide more info, just let me know.

Thanks




You can write your menu code in one seperate file (and name it, e.g, menu.php) and include it in all the 20 pages simply with the following code:

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

So, every time you make changes on the menu.php file it will reflect on each and every pages.


Regards.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum