As I'm sure you are aware, there will exist times when designing any web site that you will want specific layout options available to perhaps only a single page. We have already seen how we can use templates to keep our layouts consistent, in this tutorial we will look at how we can create page elements for our layout and show them only on the pages that they are required. The same technique can also be used in reverse, reversing the technique would allow you to remove specific elements from pages that don't require them.
Today we will look at how we can show an element on one page while hiding it from view on all other pages. The element we will be revealing will be a search results table on the search page. This search results table is surplus to requirements on all other pages in the web site so will not be visible on any page other than search.html. To achieve this functionality through our template we will be using the Optional Region functionality.
The Beginner's Guide to Dreamweaver Templates Series:
A Beginner's Guide to Dreamweaver Templates - Part 1: Creating the Template
A Beginner's Guide to Dreamweaver Templates - Part 2: Editable Attributes
A Beginner's Guide to Dreamweaver Templates - Part 3: Optional Regions
A Beginner's Guide to Dreamweaver Templates - Part 4: Repeat Regions
A Beginner's Guide to Dreamweaver Templates - Part 5: Nested Templates...