Please help. When building my site, how do I put the template on each page. It is on the index page, but I want to put it on the other pages too. Do I have to keep dragging the images into Dreamweaver under the file? For example a page called sample.html If I want the template there is there and easy way to do this, bearing in mind the template is already in Dreamweaver? Thx for your help, Jab
I don't know about dreamweaver, but the right way to handle a situation where the same exact info is repeated on numerous pages is through what is called a server side include.
If its the whole template then just rename sample.html and make your changes. If its just a section of the template then save that section as a .php file and call it each time in your template with an include. show me your site and tell me what it is you want to do.
Includes aren't too hard. Read this: http://www.php.net/manual/en/function.include.php And you'll be golden. Be warned, though: includes won't show up when previewing the page off of your hard drive unless you are running Apache with PHP installed. They will show up once you upload your site, though.
Usually you would make a second page, copy the code from the first, and paste it into the second page. If you used PHP you could make a header and a footer and then call them every time so you didn't duplicate the code. However, for this purpose just cut and paste and change the content.
.Net has the Master file to handle the issue. Create the template first and it is saved as a .master file with content controls for where you want the individual pages content to go. In the "page" files, you simply have the content controls with the content within it (most pages only have a single content control) and can set the header items such as page title and so none of the template contents other than the name of the master file. When you browse to a page, the server merges the page and master file to output the content.