Consider Dynamic Behavior

Top Previous Topic Next Topic  Print this topic

At this point, you may have structured your Document Template using Layouts and Page Sets. It is now recommended to take into account the content you would like to populate your template with. It is important to think of elements in your document as one of two types: static or dynamic.

 

Static content is added into the Design Surface and will appear in your output as you have added it in your template.

Dynamic content can vary depending on the data source used. It can either display data directly from the source, conditionally show static and dynamic elements, or even repeat for every element present in your data source. When your document is rendered, your data source will be used to display your dynamic content accordingly, making an entirely unique output.

 

static_bp

Figure 1: Static text is used to describe the dynamic content that will be displayed.

 

dynamic_bp

Figure 2: The output displays both the static text and the populated dynamic value.

 

As a best practice, we recommend to first think about what content in your template will be static and what will be dynamic. Questions such as the following may help you create a concept for your template before even beginning to design the content:

 

- Does my document have paragraph sections that will need to be displayed only if certain conditions are met in the data?

- Do I have a need to generate a repeating paragraph for a particular item in my data?

- What information on each page will be obtained from the data source, and what content will always be the same no matter what the data source is?

- As my template is used with many different data sources, do items like formatting and image usage need to change?

 

With the answers to these questions in mind, you can begin using the Design Guide to build your Document Template with static, as well as Dynamic Content.