Containers are placeholders, they can be filled with one article template per container.

Graphic frames of any template in InDesign can be tagged as containers using the »PFContainer« tag. Attributes can be used to define which contents can be inserted into the PFContainer block.

The related article templates must be created separately both in InDesign and in printformer (Configure printformer templates).

Make sure that their format is not larger than the size of the container (otherwise they will be inserted with the required offset). If the articles are smaller, they can be aligned (horizontally and vertically) or moved within the container. Article templates should always be created without bleed. (If desired, an additional contour SVG can be created so that elements that extend beyond the working area of the article template are cut off).

If the content of text and/or image blocks is to be transferred when changing the article template, the tag content-identifier must be added to the respective block.

After master and article templates have been configured in printformer, the articles must be assigned to the master template. This means that when editing the template in the editor, the catalog templates tab automatically appears from which the articles can be inserted into the container blocks using drag&drop. (Via the attribute catalog-template-identifier the container is already filled with the selected catalog template when creating the draft).

If containers are used with the Feed Feature, they can also be filled with multiple products (as long as the corresponding article templates fit into one container multiple times).
They will be arranged in order from top to bottom and left to right.

Set up template in printformer

Attributes

The values listed under name are individual attributes of the tag PFContainer and are entered as name, the possible values are listed in the second column. If the cell is empty, the value is freely selectable.

name

value (Limitations)

Usage

content-requirements*

One or more tags (comma-separated) used to restrict the possible contents of the container.

content-group**

 

One or more DataKeys (comma separated) used to search for content for the block in the current data sources.

source-page**

Integer

Page number (starting with 1) of the article template page that should be placed in the container. Default value: 1

h-align

left, center, right

Automatic horizontal alignment of the article template
Default value: left

v-align

top, center, bottom

Automatic veritical alignment of the article template
Default value: bottom

settings

Valid JSON format

BlockSettings

catalog-template-identifier

Identifier of an already existing catalog template

When creating a draft from this template, the container is already filled with a catalog template (created in the backend). This way, the assignment of article templates in the master template configuration can be omitted.

identifier

Freely definable string used to address the container. Used when the template is pre-filled via API.

*Set tags for articles

The content-requirements attribute can be used in the (IDML) template to specify the articles with which the container can be filled. The tags can be defined freely, but must also be added to the corresponding article templates in the printformer. (The tags are typed/copied into the Tags field and are then added by pressing the Enter key).

In the admin settings, the tag filter mode is defined for all containers. This determines whether the container can be filled with an article template if it contains only one of the predefined tags or whether it must contain all tags.

**Multi-page article templates

If an article template consists of several pages, the containers in which it is to be inserted must first be grouped and additionally provided with information about the desired number of pages.
For this purpose, the attribute content-group is used to assign the same value (freely definable) to all containers belonging to the group. Subsequently, the desired page number of the article template is determined for the container via the attribute source-page.

page planning with pre-filled containers

If catalog templates are already assigned to the containers in the IDML file and then filled with a product in the editor, only the product is initially removed via the Empty container button (the article template remains). If the button is then selected a second time, the article template is also removed from the container.

Sample Template

PF_Container_Template_sample.zip