PDA

View Full Version : How to insert html piece?


ankietz
12-15-2011, 06:06 AM
I use one layout template for all pages. On some of themI'll need to insert/include a new menu which is in a plain html. Thismenu will be changing and unfolding so I'll do frequent updates ofit. That means I need to have a separate html file of it (for ease of updating)and insert it into the pages I want by calling it with javascript or somethinglike that. What's my options in dreamweaver CS5.5? In old times Iused to convert the menu's html to a file.js and then call it on the pagewith javascript. I've been out of designing for 5 years so I needyour help please. Any suggestion will be greatly appreciated.

Corrosive
12-15-2011, 08:48 AM
Hi and welcome to the forum. You can use Dreamweaver's templating system or try PHP includes; http://www.dreamweaverclub.com/php-includes.php

ankietz
12-15-2011, 08:06 PM
Thank you for your quick reply. Yes, php is an elegant and simple way to include other pieces in the webpage. Manmy thanks