@INHERIT Bindings


Syntax @INHERIT default content if no other content found

The @INHERIT binding takes advantage of the hierarchical structure of the document tree by allowing Template Variable content to "cascade" down the document tree. What this means is that you can apply content to whole sections of your site by editing just one TV.

This binding can be used for Input Option Values or the Default  Value like any other binding. However, it is really only useful  when used for the Default Value.

When this binding is used as a Default Value for a TV, if no  content is specified for this TV in the current document, the  binding will look at it's parent document for content, and if none  is found, it's parent and so on until it reaches the top of the  document tree. If it no content is found it will use the default  content.

For example: Let's say you have a "Help & Support" section of your  site and in every page in the Help & Support section you want your  footer message to read "If you need any further support please  contact us" while you want the rest of your site to read "Copyright  yoursite.com." If you were to set the Default Value for the Footer  template variable as shown below

@INHERIT Binding

all you'd have to do is edit the Footer template variable in the  first document of the Help & Support section of your site and you'd  be done. Because the content from the one top Help & Support  document would become the default value for all documents beneath it.