May 29, 2025 |
Home-->> | |||||||||
Section 1 :: Intro :: DW Interface :: Defining a site :: New Document Section 2 :: Inserting and formatting text :: Bullets and Lists :: Hyperlinks Section 3 :: Tables :: Images Section 4 :: flash buttons :: Resizing Elements :: horizontal Rules Section 5 :: Behaviours and Interactivity :: Roll Overs Section 6 :: CSS :: Frames Section 7 :: Templates :: Library Items :: Uploading to a Web Server :: Keyboard Shortcuts |
TemplatesA Dreamweaver template is a special type of document that you use to design a "locked" page layout. A template author designs the page layout, and creates regions in the template that are editable in documents that are based on a template. In a template, the designer controls which page elements a template user- such as writers, graphic artists, or other web developers- can edit. One of the most powerful uses of templates is the ability to update multiple pages at once. A document that is created from a template remains connected to that template (unless you detach the document later). You can modify a template and immediately update the design in all document based on it. You can add a Cascading Style Sheet (CSS), timeline, or behavior to a document that is based on a template, because Dreamweaver automatically inserts an editable region in the head section of a document. Template-related operations (such as adding editable regions) are enabled in both Code view and Design view. Some template customizing options are only available in Code view. A template determines the basic structure for a document and contains elements such as text, images, page layout, styles, and editable regions. You can create a template from a new document or from an existing document. If you insert a template region in a document that hasn't been saved as a template, Dreamweaver advises you that the document will automatically be saved as a template.To create a template:
To define an editable template region:
Removing an editable regionIf you've marked a region of your template file as editable and you want to lock it (make it noneditable) again, use the Remove Template Markup command. >Note: You can't lock a region in a file based on a template; you can lock a region only in a template file.To remove an editable region:
Repeating Editable RegionsA repeating region is a section in a document that is set to repeat. For example, you can repeat a table row. By repeating the table row, you allow the template user to create an expanding list, while keeping the design under the control of the template author. In a document based on the template you use repeat region control options to add or delete copies of the repeated region. There are two types of repeating regions you can insert in a template-repeating region and repeating table.To insert a repeating region in a template:
To insert a repeating table:
Defining editable tag attributesYou use the Make Attribute Editable command to allow a template user to modify specified tag attributes in a document created from a template. For example, you can set a background color in the template document yet allow a template user to set a different background color for pages they create. The user can update only the attributes you define as editable. Creating an editable tag attribute inserts a template parameter in the code. An initial value for the attribute is set in the template document; when a template-based document is created, it inherits the parameter. A template user can then edit the parameter in the document. The following data types are supported: text, boolean (true/false), color, and URL.Creating a template-based documentOnce you set the template design, you apply a template to either a blank document or a document that already contains content. To create a new document based on a template, you can use the Assets panel or the New Document dialog box. The Assets panel lists templates in your current Dreamweaver site. You can right-click in the Templates category of the Assets panel to create a new template, and to create new documents from a template. In the New Document dialog box, you can select a template from any of your currently defined Dreamweaver sites to create a new document from. When you create a new document based on a template, you can choose whether the document remains attached to the template. By default, when you change a template, all attached documents update to reflect the template changes. If you deselect the Update Page When Template Changes option when creating a new document, the new document is created as stationery: an independent HTML file, with no template regions. Updates to the template do not change the document.To create a template-based document in the New Document dialog box:
Editing content in a template-based pageYou can easily identify and select template regions in both the template document and in template-based documents. Editable template regions are listed at the bottom of the Modify - Templates submenu. Editable regions that are inside a repeated region do not appear in the menu. You must locate these regions by looking for tabbed borders in the Document window.To find an editable region and select it in the document:Choose Modify - Templates, and choose the name of the region from the list at the bottom of that submenu. The editable region is selected in the document.![]() Creating LibrariesTemplates act as blueprints for a Dreamweaver document and work well when pages share common items such as a logo, the header, or the copyright and 'Last edited date' statement of the organisation. However. if these elements must be presented at different locations and in different combinations on the Web pages templates alone do not work. Templates represent a similar structure for all the pages of a site. In Dreamwaever such pages can be created with the use of library items. A library item can contain objects, such as text, images, tables and forms that can be used across Web pages in a site. When a library item is updated it is automatically updated in an documents containing the library item.Library ItemsThe Library category of the Asset panel is used to create new library items - Window - Assets. The library items are stored in the root folder of the site and have a .lbi extension. To create a library item:
Inserting library itemsLibrary items can be inserted into a site to give the site a consistent look. To insert a library item into a document:
Modifying library itemsWhen a library item is modified all pages that contain the item are automatically updated. To modify a library item:
![]() Uploading file to a webserverYou need web space!!!
How you get your web pages to the Internet will depend on how your web host (the site where you are going to place your web pages). Some web hosting servers will allow you to upload your files via web pages. Other hosts will require that you use an FTP program. The FTP method is the easiest. FTP stands for File Transfer Protocol and there are many free FTP programs but we are going to use Dreamweaver as our FTP program. setting up FTP connectionsHere we will use Dreamweaver’s FTP facility.
Enter in your details- you can leave the second box “what folder on the server do you want to store your files in?” blank Now your FTP connection is setup. Uploading files When your site is finished ad you want to upload to your web host click the connect button on the files panel AppendixShortcut Keys
|
|||||||||
![]() |
||
![]() |
![]() |
|
Copyright © 2003-2006 Urshula Infotech Solutions All Rights Reserved. |