There are several solutions:
1. Use server-side includes to contain all of you common elements. I routinely use them for things like HEAD content, header content, any Navigation element, footer and colophon containers.
2. Use Dreamweaver's Library items to contain the same.
3. Use Dreamweaver's Templates to create your pages.
#1 is far and away the best way, but you must understand how server-side includes work, and how they are implemented in non-dynamic scripted pages, or in scripted pages, whichever you are using.
#2 is a better solution than #3, but either of them do all their work in DW in your local files, all of which must then be uploaded again to the server afterwards.
okay so I need to learn server side.. Are you able to suggest a good website page to learn server side?
1 person found this helpful
I've always found Al Sparber's (Project Seven) explanation clear and concise.
The explanation centres around his company products (in this case PMM3) but applies to all SSIs (Server Side Includes).
I have been able to develop the server-side includes for the website. And it seems to be working but the links in the navigation bar are not. Any idea what I m missing? url address is www.butlerlawyers.com.au
Thanks again for your advice
sorry please ignore my last message. The links are working. I needed to clear my browser cookies
If you are using the includes in pages that are both at the root level and in subdirectories of your site, then all of the links within the include file should either be ROOT relative or absolute, e.g.,
(these examples assume you are linking to filename.html that is located three folders deep in your site)
Thanks Murray your advice has always been very helpful.
Sorry to be a pain in the backside. Since I have changed the html files to php files to enable the side-server includes I have not been able to use the Dreamweaver live tab. I get the message as displayed in the below screen shot.
Any ideas how to remedy the problem??
Did you install and define a local testing server? PHP pages can't parse data in a regular browser preview. They must be parsed through localhost.
Get one of the following servers for your OS and follow the installation instructions.
WAMP for Windows
XAMPP for Windows
XAMPP for Mac
MAMP for Mac
Setting up a PHP environment in Dreamweaver
thank you Nancy