Keyword Replacements

Last Updated: 04 Feb 2017

This chapter outlines the keyword replacements that can be used to show information for the Core Assets within Squiz Matrix. These can be used on assets such as the Asset Listing, What's New and Search Pages. For more information about these assets, refer to the Asset Listing manual and the Search manual.

Bookmarks

Standard Page

The following keyword replacements can be used on a Standard Page.

Keyword Replacement Information shown
%asset_attribute_comments% This will print all of the comment data in a JSON array sourced from all WYSIWYG Content Containers that are part of the Standard Page. The keyword can also be used on individual Content Containers.
%asset_variations% Prints an array of all Variations on the page including information about each variation such as asset ID, asset name, array of Persona asset IDs assigned, and if it's the default variation (true or false).
%asset_variations_content% Prints an array of all the Variations and their contents. You can then use a ^index keyword modifier to print the contents of a specific Variation. Note that this keyword can only be used outside of a Standard Page, for example in a Paint Layout, as it will print the contents of itself.

File

The following keyword replacements can be used for File, MS Excel Document, MS Word Document, MS PowerPoint Document, PDF File and Text File asset types.

Tip: These keywords can be used in conjunction with the standard Common Keywords.

Keyword Replacement Information shown
%asset_attribute_title%   The title of the file.  
%asset_attribute_name%   The name of the file for example Squiz_Map.swf.  
%asset_file_size_in_bytes%   The size of the file in bytes.  
%asset_file_size_readable%   The size of the file in friendly format.  
%asset_file_contents% The binary contents of the file.
%asset_file_updated% The date and time that the File asset was last modified. The format that will be used is YYYY-MM-DD HH:MM:SS.
%asset_file_updated_readable% The date and time that the File asset was last modified. The format that will be used is DD M YYYY H:MM[AM\PM].
Alternate Video File

The Video File asset allows for the configuration of an alternate video file. The attributes of this alternate video file can be accessed using the following keyword replacement format:

%asset_attribute_alt_asset_<asset_attribute>% 

For example, %asset_attribute_alt_asset_asset_url% will display the URL of the alternate video file, while %asset_attribute_alt_asset_asset_name% will display its name.

Image and Thumbnail

The following keyword replacements can be used for Image and Thumbnail asset types.

Tip: These keyword replacements can be used in conjunction with the standard Common Keywords and File Keyword Replacements.

Keyword Replacement Information shown
%image_width%       The width of the image in pixels.      
%image_height%       The height of the image in pixels.      
%image_tag%       Displays the image.      
%asset_attribute_size%       The size of the file in bytes.      
%asset_attribute_height%       The height of the image. This is generated from the image file.      
%asset_attribute_width%       The width of the image. This is generated form the image file.      
%asset_attribute_alt%       The information entered into the Alt attribute on an image.      
%asset_attribute_caption%       The information entered into the Caption field on an image      
Image Variety

The following keyword replacements can be used for an Image Variety. Please note <variety_name> is the name of the variety that you want to use.

Keyword Replacement Information shown
%image_v_<variety_name>% Displays the Image Variety of an Image or Thumbnail asset.
%image_v_<variety_name>_url% The URL of a specified Image Variety.
%image_v_<variety_name>_width% The height of a specified Image Variety (in pixels).
%image_v_<variety_name>_height% The width of a specified Image Variety (in pixels).
%image_v_<variety name>_file_size%The file size of a specified Image Variety (in bytes).
%image_v_<variety name>_file_size_readable%The file size of a specified Image Variety (in a readable format).
%asset_thumbnail_v_<variety_name>% Displays the Image Variety of the thumbnail of an asset.
%asset_thumbnail_v_<variety_name>_url% The URL of a specified Image Variety of the thumbnail of an asset.
%asset_thumbnail_v_<variety_name>_width% The width of a specified Image Variety (in pixels) of the thumbnail of an asset.
%asset_thumbnail_v_<variety_name>_height% The height of a specified Image Variety (in pixels) of the thumbnail of an asset. 
%asset_thumbnail_v_<variety name>_file_size%The file size of a specified Image Variety (in bytes) of the thumbnail of an asset.
%asset_thumbnail_v_<variety name>_file_size_readable%The file size of a specified Image Variety (in a readable format) of the thumbnail of an asset.
Thumbnail

The following keyword replacements can be used to display information on the Thumbnail of an asset.

Keyword Replacement Information Shown
%asset_thumbnail% The thumbnail of an asset.
%asset_thumbnail_title% The title (friendly name) of the thumbnail of an asset.
%asset_thumbnail_name% The file name of the thumbnail of an asset.
%asset_thumbnail_assetid% The asset ID of the thumbnail of an asset.
%asset_thumbnail_url% The URL of the thumbnail of an asset. 
%asset_thumbnail_caption% The caption of the thumbnail of an asset.
%asset_thumbnail_alt% The alt text of the thumbnail of an asset.
%asset_thumbnail_v_<variety_name>_X% Specified attribute value for an Image Variety of an asset thumbnail, where <variety_name> is the name of the variety and X is the attribute that you want to show. For example, %asset_thumbnail_v_var1_url% will show the URL of the var1 variety.