How To Have One Template Element Throughout Multiple Web Pages In Dreamweaver
Learn how to create nested templates to control content in pages that share pattern elements in Dreamweaver.
A nested template is a template whose design and editable regions are based on another template. Nested templates are useful for decision-making content in pages of a site that share many pattern elements, but have a few variations between pages. For case, a base template might comprise broader design areas and exist usable by many content contributors for a site, while a nested template might further define the editable regions in pages for a specific section in a site.
Editable regions in a base of operations template are passed through to the nested template, and remain editable in pages created from a nested template unless new template regions are inserted in these regions.
Changes to a base of operations template are automatically updated in templates based on the base template, and in all template-based documents that are based on the main and nested templates.
In the following case, the template trioHome contains three editable regions, named Trunk, Nav Bar, andFooter:
To create a nested template, a new document based on the template was created and and so saved equally a template and named TrioNested. In the nested template, 2 editable regions accept been added in the editable region named Body.
When you add a new editable region in an editable region passed through to the nested template, the highlighting colour of the editable region changes to orangish. Content you add together exterior the editable region, such as the graphic in the editableColumn, is no longer editable in documents based on the nested template. The blue highlighted editable areas, whether added in the nested template or passed through from the base template, remain editable in documents that are based on the nested template. Template regions that do non incorporate an editable region laissez passer through to template‑based documents as editable regions.
Create a nested template
Nested templates let you create variations of a base template. You can nest multiple templates to define increasingly specific layouts.
By default, all editable template regions from the base template laissez passer through the nested template to the document based on the nested template. That ways that if you create an editable region in a base template, then create a nested template, the editable region appears in documents based on the nested template (if y'all did non insert whatsoever new template regions in that region in the nested template).
You lot tin can insert template markup inside an editable region so that it won't pass through equally an editable region in documents based on the nested template. Such regions have an orange edge instead of a blue border.
-
Create a certificate from the template in which you lot want to base of operations the nested template. Do one of the following:
-
From the Avails panel, click Templates from the left pane. Select New Template from the lesser pane.
-
Select File > New. In the New Document dialog box, select the Page from Template category, then select the site that contains the template you want to employ. In the Template listing, double-click the template to create a new document.
-
-
Select File > Save As. In the Save as dialog box, select Template Files in the Salve as type driblet-downwardly list.
-
Enter a name in the Save Equally box and click OK to relieve the new document every bit a nested template.
Prevent an editable region from passing through to a nested template
In nested templates, pass-through editable regions take a blue edge. You can insert template markup inside an editable region then that it won't pass through every bit an editable region in documents based on the nested template. Such regions have an orangish edge instead of a blue edge.
-
In Code view, locate the editable region you want to forestall from passing through.
Editable regions are defined by template comment tags.
-
Add the following code to the editable region code:
This template code can be placed anywhere inside the <!-- InstanceBeginEditable --><!-- InstanceEndEditable --> tags that surroundings the editable region. For example:
<!-- InstanceBeginEditable proper name="EditRegion1" --> <p>@@("")@@ Editable i </p> <!-- InstanceEndEditable -->
How To Have One Template Element Throughout Multiple Web Pages In Dreamweaver,
Source: https://helpx.adobe.com/mt/dreamweaver/using/creating-nested-template.html
Posted by: rosstooll1958.blogspot.com
0 Response to "How To Have One Template Element Throughout Multiple Web Pages In Dreamweaver"
Post a Comment