Skip to main content
Skip table of contents

Dynamic image filling from data sources

You can also create placeholders for images that are automatically filled in the editor.
There are different use cases and data sources for this:

Possible data sources

  • External URL (use case 1 and 2)

When using a URL, the printformer saves the image from the URL when the template is opened for the first time and then no longer queries it. If the image is updated on the website, the old version remains in the template.
If this source is used, please note that the URL must be accessible and retrievable multiple times.

  • System media (use cases 1 and 2)

  • User attribute (use case 3)

  • Article attribute (blue star) Special feature

Use Case

  1. Image blocks are filled using Systemmedia:
    The data-key-value attribute is added to the image block tag. The images must be uploaded in advance and the entire file name (incl. suffix) must be entered in the value. In addition, the media-hunter attribute must be added with the value system-media:

    SC_image-placeholder2.png

  2. Image blocks are filled using a Feed:
    The attribute data-keys is added to the tag of the image block, the value must correspond to the column title of the feed file. A URL or the file name (incl. suffix) of a system medium can be specified in the feed.

    SC_image-placeholder4.png
  3. Image blocks are filled using a User attribute:
    An attribute of the type File is created in the user menu. Either a standard file can be uploaded or - if desired - a separate file for each individual user. The d attribute is added to the image block tag; the value must correspond to the DataKey of the attribute (user-defined attributes always start with pf-ca):

    SC_image-placeholder3.png

If the data-keys attribute is used on the image block, the image source must be selected in the template configuration under Content for all image blocks to be filled (external URL or system media)

SC_image-placeholder5.png

Alternatively, the media-hunter attribute can be added to the image block tag in the IDML, see printformer BlockAttributes | printformerBlockAttributes-Assetblocks-(image,-PDF-blocks)

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.