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.
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
PHP Code:
<div id="sidebar"> <?php include "menut.txt"; ?> </div>
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
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.