I posted this in off topic.
I have somewhat of a troublesome client building a large site with an extremely comprehensive menu on the side of the page. It is a standard unordered list.
The menu appears on every last page. And the guy keeps wanting to re-order it. I am finding type-o's etc. I am not happy with the find and replace method via Dreamweaver because I find it leaves artifacts and unintentional line breaks and such.
So I am looking for a piece of code. Such as what would be used to call an image from a different server to apply to the menu. So I generate the menu one time instead of having it on every last page.
Is this possible. If so . . . How. Thanks!
PHP
PHP
convert all pages to php and
convert all pages to php and create a file called navigation.php
Put only the unordered list in that file. No doctype, or body tags or anything. Just the navigation data.
Then, in all of your pages replace the navigation with
<?php include('navigation.php'); ?>
Now you only have one file to change and it edits all of them.
This works great for areas like the footer and including css and javascript files and such as well.
Wow!
Thanks for the information.
I am really excited about this.
I am having trouble styling the content though.
Any special way to handle styles?
Wow!
Thanks for the information.
I am really excited about this.
I am having trouble styling the content though.
Any special way to handle styles?
No. Once the site renders,
No. Once the site renders, it's the exact same as if it's hardcoded.
After you load it up on a server, view the source. It should look like you never changed a thing.
If it doesn't then you messed something up 
Once you have it sorted SACK
Once you have it sorted SACK the client 
True
He has deff. been moved to my panic list. Not that I am in a panic over the contract. But I will have to be in one to take another contract.
It's all relative. Some are diamonds some are duds. Some are diamonds and duds. Some pay diamonds in order to be duds . . .