Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Open a blank CHILI document using the default (Admin) WorkSpace. Go to "Variable Data" tab in the right tabs, and add a new Variable in the Variable List. In Variable Settings, set its name to "FirstName". No additional settings are required at this point. We do not recommend to the use any of special characters in variable names . (for example, a single quote ' ) it , as they can cause error on errors in some of the Webservice functions. The Display Name can contain special characters.

...

By default, you are looking at the CHILI document in "Preview" mode. This means that you see the document with the actual Variable Data applied. In the previous walkthrough, we've added a FirstName variable to the text frame. Once we configured the text frame to hold variable data, however, we do see the display value, but are no longer able to edit the text in the frame. There are several ways to accomplish this, all available only for administrators in the document:

  • Toggle between

    source

    Source and

    preview

    Preview mode

  • Edit the underlying story of the text frame

Toggling between source Source and preview Preview mode can be done in a number of locations. While working in the "Variable Data" tab on the right, the "Common Variable Tools" Panel contains a "Preview Mode" pulldown. Next to that, an icon is available in the ViewPreferences toolbar item.

    Image Modified    Image Modified



Without toggling the preview mode for the entire document, though, it is also possible to edit the source of a single Text Frame though the Story Editor. For Text Frames containing variables, this will always show the source (and because of that is only available for administrators).

...

Linked Variables

Next to text variables, it is also possible to link variables to certain types of content from within the settings of that content.

Continuing on our blank document, create:

  • A blank image frame

  • A new page

  • A new layer (and add some content like a rectangle on it, as we'll be showing/hiding this layer automatically)

  • Three new Variables:

    • "MyImage", of datatype "image"

    • "MyShowPage", of datatype "checkbox"

    • "MyShowLayer", of datatype "checkbox"

You will see the relevant input items appear on the left:

...