Conversion Templates

CUE Content Store, CUE Print and DC-X are all highly flexible system that allow documents and data structures to be customized in various ways. CUE Zipline makes frequent use of templates in order to be able to deal with this flexibility. Most of the data transformations performed by CUE Zipline make use of templates generate correctly formatted output. A set of standard templates are supplied with CUE Zipline. These will work at many installations, but they may not produce exactly the desired results: they may not, for example include custom fields in converted content. In other cases, the supplied templates may not work at all.

In most cases, some template modifications will need to be carried out to produce the desired results.

CUE Zipline uses the Jinja2 template processor. All templates are located in the /etc/conf/conversion-templates folder by default. This folder contains the following template subfolders:

cue-print/cue-print-to-storyline

This folder contains templates for converting CUE Print texts into CUE pseudo-storylines. These templates are used by the CUE Print to Content Store conversion. You may need to modify them to achieve the desired results with your content types.

cue-print/storyline-to-cue-print

This folder contains templates for converting CUE pseudo-storylines into CUE Print texts. These templates are used by the Content Store to CUE Print conversion and for generating print previews (see Print Previews in CUE). You may need to modify them to achieve the desired results with your content types.

newsmlg2/newsmlg2-to-storyline

This folder contains templates for converting NewsML files into CUE pseudo-storylines. These templates are used by the conversion. You may need to modify them to achieve the desired results with your content types.

newsmlg2/storyline-to-newsmlg2

This folder contains templates for converting CUE pseudo-storylines into NewsML files. These templates are used by the Content Store to CUE Print conversion. You may need to modify them to achieve the desired results with your content types.

classic

This folder contains templates for converting classic (rich text based) content items into CUE pseudo-storylines (classic-to-storyline) and vice-versa (storyline-to-classic). These templates are used by the Classic/Storyline Conversions. You can both modify these standard templates and/or add additional sets of templates to be used for converting different types of content.

A pseudo-storyline is a JSON file containing a modified version of the storyline data structure. It is easier to convert between the pseudo-storyline structure and XML formats such as NewsML, CUE Print text XML and classic CUE content items than it is to convert directly between the true storyline format and such XML formats. CUE Zipline provides an API for converting between the storyline and pseudo-storyline formats.