Chapter 7. Exploring Templates
What You Will LearnIn this lesson, you will:Create a basic template for Contribute useDefine editable regions for headings and body textConvert a legacy template to work better with ContributeStructure a nested template for multiple departmentsMake a new page from a template in ContributeApply a Dreamweaver template to a Contribute page
Approximate TimeThis lesson takes approximately one hour and 45 minutes to complete.Lesson FilesMedia Files:LessonFiles/Lesson_07/css/bg_dean.cssLessonFiles/Lesson_07/css/bg_news.cssLessonFiles/Lesson_07/images/bellastar.jpgStarting Files:LessonFiles/Lesson_07/company/deanletter0804LessonFiles/Lesson_07/depts/maternity/indexLessonFiles/Lesson_07/hr/newsletter/august04LessonFiles/Lesson_07/Templates/general.dwtCompleted Files:FinalFiles/Lesson_07/css/bg_filter.cssFinalFiles/Lesson_07/Templates/dean_letter_v2.dwtFinalFiles/Lesson_07/Templates/hr_newsletter.dwtFinalFiles/Lesson_07/Templates/master_dept.dwtFinalFiles/Lesson_07/Templates/maternity_dept.dwtFinalFiles/Lesson_07/Templates/pediatrics_dept.dwtMacromedia Contribute and templates were made for each otherliterally. A basic concept of Contributeto allow nontechnical users to supply content to a pageworks best when templates are used. With templates, content is added to specific areas; whereas other page elements, such as navigation and overall design, are protected from modification. Moreover, advanced template features such as optional regions come into their own only when applied in Contribute.Templates also represent the interdependent nature of the Macromedia Dreamweaver designer and the Contribute user. Templates can be created only in Web-authoring programs such as Dreamweaver, in which you have total control of the code: You cannot craft a template in Contribute. You can, however, create new pages from templates in Contribute; such pages are known as child pages or dependent pages. The dependency of these pages on their originating template is another boon to the Dreamweaver designer. Any changes that need to be made to the overall structure of the documents, such as adding a new navigation button, are applied to the template in Dreamweaver and propagated to the child pages without affecting the Contribute-added content.Careful application of multiple editable regions when constructing Dreamweaver templates makes editing in Contribute easier, faster, and less error prone.