Chapter 3. Implementing Common Elements
What You Will LearnIn this lesson, you will:Learn more about server-side includes (SSIs)Create a properly formed SSIExplore SSIs in ContributeCorrect a legacy SSISet up Contribute administrationOpen an SSI in Contribute for editingImplement shared assets
Approximate TimeThis lesson takes approximately one hour and 15 minutes to complete.Lesson FilesMedia Files:NoneStarting Files:LessonFiles/Lesson_03/images/logo_wha.gifLessonFiles/Lesson_03/images/ infoIconWin.gifLessonFiles/Lesson_03/Templates/press_release.dwtLessonFiles/Lesson_03/includes/legacy.incLessonFiles/Lesson_03/company/events.shtmLessonFiles/Lesson_03/includes/slogan.txtLessonFiles/Lesson_03/hr/policyLessonFiles/Lesson_03/Library/HelpDesk.lbiLessonFiles/Lesson_03/media/helpLessonFiles/Lesson_03/hr/training_scheduleCompleted Files:FinalFiles/Lesson_03/includes/footer.incFinalFiles/Lesson_03/Templates/press_release.dwtFinalFiles/Lesson_03/includes/legacy_head.incFinalFiles/Lesson_03/includes/legacy_body.incFinalFiles/Lesson_03/includes/slogan.txtFinalFiles/Lesson_03/hr/policyFinalFiles/Lesson_03/hr/training_scheduleWithin any given Web site, no single page is an island. By design, a site's pages often share a series of common elements: a header with a company logo, a navigation bar linking to primary site sections, and a copyright notice at the foot of the page are good examples. Mutual page elements and a shared layout enhance a site's usability and can prevent the user from having to figure out anew how to use each page.Common Web page elements make sense from a maintenance perspective as well. Suppose that every page on a Web site includes the company logo as a GIF image and that all the src attributes point to a single file. Make any change to that image file, and the modification is instantly reflected on all pages after that graphic is published to the Web site. This example illustrates both the benefit and the danger of common elements. With multiple content contributors, unauthorized changes to a single file can have consequences across the site and remain possible until steps are taken to place such files out of reach.The goals of this chapter are to demonstrate the proper use of common elements and illustrate techniques to avoid their misuse. The lesson starts by focusing on a frequently used common element, the server-side include (SSI). As the name implies, an SSI is a file that is incorporated into the Web pag109 by the server. To display th109 page with an SSI properly in Macromedia Contribute, an SSI must follow certain guidelines. You'll learn in this chapter how to create a properly formatted SSI from scratch and how to adjust legacy includes. SSIs typically are not intended to be edited by the content contributor; doing so could potentially wreak havoc on numerous pages throughout the site. You'll see how to protect your SSIs from unwanted changes, as well as how to set them up to be opened for editing from within Contribute.When formatted correctly, SSIs use one file to represent common elements such as the navigation bar across a site.[View full size image]
