IT tutorials
 
Graphics
 

Dreamweaver CS5 : Using Dreamweaver Templates - Nesting Templates

12/25/2011 11:32:52 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

The simple template, with its combination of locked and editable regions, truly reflects the reality of many Web pages where the overall structure is constant and the details of the content vary. Often, however, a single locked area is too rigid to really be useful in a complex site. Suppose for a moment you're working on a site for a magazine publisher with multiple brands. The client wants a general look and feel for the entire site with separate navigation and content for each magazine. One way to achieve this effect is to use multiple templates — one set for each magazine, all incorporating the parent-company style. The problem here is that to affect changes on the highest level, all the templates need to be changed. Another way — a better way — is to use nested templates.

Nested templates allow template-based documents to have numerous tiers of locked regions. With nested templates, the magazine publisher in our example could make a change to just the master template and the modifications would ripple through all the other magazine-specific templates and on down to their related pages. Best of all, there's no real limit on nesting templates: Your template-based files can be as deeply nested as you need them to be.

Here's an overview of how nested templates work:

  • A new page based on the master template is created and saved as a template; this new document is the nested template.

  • Within the editable areas originally set up in the master template, new editable areas are placed. All areas not designated as editable in the nested template are locked.

  • A new document is created, based on the nested template. The only editable areas are those inserted in the nested template.

  • When modifications are made to the nested template, the changes are reflected in the pages based on that template. When modifications are made to the master template, the changes are applied to both the nested template and to documents based on the nested template.

Dreamweaver employs a color-coding system to help you differentiate editable regions inserted in the master template from those added in the nested template. Although you can't tell it in this black-and-white screenshot, the master template editable regions are shown in orange, whereas nested template editable regions are shown in blue (see Figure 1).

To create a nested template, follow these steps:

  1. Create a master root-level template by choosing File => Save As Template for an existing page or selecting New Template from the Template category of the Assets panel for new documents. The master template contains all the elements — navigation, logos, footers, and so on — common to all template-based pages in the site.

  2. Insert editable regions wherever variable content is desired in the master template and save the template when you're ready.

  3. Create a new document based on the master template by following these steps:

    1. Choose File New to open the New Document dialog box.

    2. Select the Templates category.

    3. Make sure the current site is selected in the Templates For list.

    4. Select the desired master template from the Template list.

    5. Click Create.

    Figure 1. The master template editable region — the region in the center here — is highlighted with an orange outline. The nested template editable regions, the outside regions, are blue.
  4. Save the newly created document as a template. By saving a template-derived document as a template, a nested template is created.

  5. In the nested template, make any changes needed within the editable regions. These changes are locked in any document based on the nested template.

  6. Add any desired template regions (editable, repeating, or optional) within the existing editable regions from the master template. When the first editable region is inserted in the nested template, the editable regions from the master template turn orange to differentiate them from the new regions.

  7. After you've finished adding the desired template regions to the nested template, save the file.

Now, when creating documents based on the nested template, you are still able to modify content within an editable region — but only those editable regions added in the nested template.

 
Others
 
- Adobe Photoshop CS5 : Fixing On-Location Flash Photos
- Adobe Photoshop CS5 : Making Really Tricky Selections, Like Hair
- Adobe After Effects CS5 : Applying effects to a layer
- Adobe After Effects CS5 : Working with imported Illustrator layers
- Adobe Fireworks CS5 : Using document templates (part 2)
- Adobe Fireworks CS5 : Using document templates (part 1)
- CorelDraw 10 : Converting Documents to Web Pages
- Adobe Flash Professional CS5 : Manipulating Symbols in 3D Space (part 2) - Transforming symbols with the 3D Rotation tool
- Adobe Flash Professional CS5 : Manipulating Symbols in 3D Space (part 1) - Controlling the camera view: Perspective and vanishing point
- Adobe InDesign CS5 : Working with Clipping Paths
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us