Configuring a Trigger to Create an Image Variety

This example will configure a Trigger to create an Image Variety when an Image asset is created. This can be useful if, for example, you have a section of your Site requiring images be of a certain size. Instead of manually creating an Image Variety for each Image asset created, this Trigger will automatically create these Varieties. For more information on Image Varieties, refer to the Image chapter in the Core Assets manual.

To configure this Trigger, follow the steps outlined below.

  1. Create a new Trigger asset.
  2. Enter a Name and Description for the Trigger, as shown in the figure below.

    Details section
    The Details section of the Trigger

  3. In the Events section, select the Asset Created Trigger Event.
  4. In the Conditions section, select the Asset is of type Trigger Condition and click Commit. Additional fields will appear in the Conditions section, as shown in the figure below.

    Asset is of Type Trigger Condition
    The Asset is of Type Trigger Condition

    In the Match any one of these Types field, select Image.
  5. In the Actions section, select the Create Image Variety Trigger Action and click Commit. Additional fields will appear in the Actions section, as shown in the figure below.     

    Create Image Variety Trigger Action
    The Create Image Variety Trigger Action

    Enter a Name for the Image Varieties that will be created and enter the Width and/or Height of these Varieties. Select the Ignore Permissions field to allow Squiz Matrix to ignore the access rights of the user/s firing this trigger when performing this Trigger Action.
  6. When you are satisfied with the settings of this Trigger, change its Status to Enabled and click Commit.

When an Image is created in the system, an Image Variety will now be automatically created, in accordance with the settings of the Create Image Variety Trigger Action.