Documentation Center

Variable context

You can use the names of subvariables such as Field or Title without explicitly providing a context. The Template Building Block then assumes that the subvariable belongs to the variable in the closest container.

For example, Field means Component.Chapter.paragraph.Field in the repeating region called Field.paragraph, but it means Component.Chapter.Field in the repeating region called Component.Chapter.

You can always make the context explicit. For example, if you want to display both the title of the Chapter field and the title of the Component itself within a repeating region called Component.Chapter, you can do it in one of the following ways:

Component @@Component.Title@@ contains chapter @@Title@@

or

Component @@Component.Title@@ contains chapter
@@Component.Chapter.Title@@