Dynamic Image Script Wizard

The Dynamic Image Script Generator is used to dynamically modify the source of an image element in the template for each content item output by the template. The result of the script wizard must be a valid path to an image resource (see Internal, External and Web Resources for more information).

Here are the options visible in the Dynamic Image Script Wizard :

  • Name: The name of the script, making it easier to identify it.
  • Find: The Selector or Text to apply the result of the script to.
    • Selector: Uses CSS selectors to find the element to which the script applies.
    • Text: Uses text as a trigger for the script. The script applies to all instances of the text found in the template.
    • Selector and Text: Uses text as a trigger for the script but only applies to text within the specified Selector.
  • Wizard Results: Displays a list of the data that is sent to replace the result of the script:
    • Prefix: Static text to use before the set field. For Dynamic Image scripts, the default prefix is images/.
    • Field: A drop-down to select which field contents to use in the script. Note that only fields from the Record tab are displayed, not from any detail tables.
    • Format: A special formatting modifier applied to the Field. The available formatting functions depend on the field type in the data model. For example, text fields can be set to uppercase or lowercase. Date fields can be set to long and short dates or different time displays.
    • Suffix: Static text to use after the set field. For Dynamic Image Scripts, the default suffix is .jpg and refers to the file extension.
  • [+] : Adds a new line to the Wizard Results. Note that by default there is no line return between fields in the list. Adding <br> in the Suffix or Prefix field can establish a line return.
  • [-] : Removes the currently selected line in the Wizard Results list.
  • Arrow Up: Moves the currently selected line up one position.
  • Arrow Down: Moves the currently selected line down one position.
  • OK: Click to save any changes made to the script, apply the changes in the template, and close the dialog.
  • Cancel: Click to close the dialog without saving changes.
  • Expand: Click to convert the script generator to a regular script. Note that this action is not reversible.
  • Apply: Saves changes made to the script and applies the changes in the template without closing the dialog.

Table of Contents

Index

Glossary

-Search-

Back