Creating pages with Templates
By: Staff
Date: February 21, 2008
Recommended by: readers | 
Level: All |
Template: it is a way in which you do all the common structure of the site only once, leaving the space that needs to be changeable already designated. It is a hand on the wheel for sites large and small, because when you decide to modify the menu for example, you do not need to change page by page, modifying only the template. Here's how to make a basic template:
1 File Menu> New
2 On the next screen choose General> Page basic> Model HTML or if use Adobe Dreamweaver CS3, under Page Type choose HTML Template and inside Layout double click on <none>
3 Now let's do the "Skeleton" of our page, make the whole common structure of your page, with logo, background, menu, etc ... Everything what is equal on all pages you should do at right now...
4 Now on the menu Insert> Object Models > Editable Region or if you use Adobe Dreamweaver CS3 you have to choose Insert > Template Objects > Editable Region. You can also choose keyboard shortcut Ctrl+Alt+V
5 Choose a name for your region
6 At the end of this step we have our editable region. You can also create few other editable regions on you page by fallowing steps above
7. Now to use our model which we just created simply click File> New> Templates, find the site where you just created your template and click Done or Create depending of which Dreamweaver version you use. Then simply insert content in the area that you created as an editable region and save normally.
If you want to change anything else on your template or maybe to add additional editable region simply open your Template make changes, click Files > Save and choose to update all pages which are created based on that template.
|