Document numberRevision
DOCU124832

 

Image Thumbnails - Configuration

Image Thumbnails - ConfigurationBackgroundIntroductionConfigurationColumnsChanging default settingsSamplesDisplaying an image in a Part viewDisplaying selection and preview in a Part viewDisplaying selection and preview in an expandable sectionDisplaying an image in a Search page

Background

A thumbnail is a compressed preview of an original image, used as a placeholder for displaying the full-sized image. Thumbnail capabilities are enabled for all Parts in Highstage by default.

 

In this article, you will learn about the concept and configuration of image thumbnails for Parts in Highstage.

 

Introduction

For each existing Part in Highstage, a specific image stored in the associated folder can be selected to be displayed as a thumbnail.

 

Thumbnails can be configured to be displayed in any Search:

 

Thumbnails can also be configured to be displayed in any Part view:

 

 

Configuration

Columns

The PictureName column is available on all Parts. This column enables a user to select any image from the associated Parts folder to be displayed.

The PictureThumbnail column is used to display a thumbnail of the selected image. When a user hovers the image, a larger preview of the image is shown.

 

By default, the PictureName and PictureThumbnail can only be accessed by navigating to any Part and selecting the Raw view. A number of examples of usage are provided in the Samples section.

 

Changing default settings

The following snippet illustrates the default configuration of the PictureThumbnail column:

AttributedescriptionDefault valuePermitted values
thumbnail-widthSpecifies the width of the thumbnail image.50px(Any length CSS property is available to be used. Read more about lengths here).
picture-widthSpecifies the width of the displayed image when hovered over.400px(Any length CSS property is available to be used. Read more about lengths here).
thumbnailSpecify the name of the generated thumbnail image.~@[image]_thumbnailAdding ~ as a prefix in the file name makes the image thumbnail temporary and will not be copied when making new revisions of the part.

Remove the prefix (~) to keep the image thumbnail when making new Part revisions.

To make changes to the default values, copy the snippet into your custom.schema.xml and modify the values of thumbnail-width , picture-width and thumbnail. Remember to Reset Highstage for the changes to take effect.

 

Samples

Displaying an image in a Part view

To display an image thumbnail directly in a Part view, the following snippet can be used as an example:

Add the snippet to your custom.schema.xml loacted in the tweak folder in your Highstage installation files.

 

This gives you the following result, once an image is selected in the PictureName column:

image-20200406130705221

TIP: Please refer to our documentation regarding <type> elements for more information about configuring <form>, <subform> and <field> elements - to further configure the displayed image.

 

Displaying selection and preview in a Part view

To be able and select directly from a Part view, the following snippet can be used:

 

This gives you the following result, enabling users to select and view image previews:

image-20200406132212259

 

Displaying selection and preview in an expandable section

The following snippet illustrates the use of a section, allowing users to disband/expand the image selection and preview:

Result:

image-20200406132458063

 

Displaying an image in a Search page

Image previews can be displayed in any search page by defining new or customizing existing <grid> elements.

 

As an example, the following snippet enables you to display an image directly from a part Search page.

Result:

image-20200406133701623

TIP: You can add the PictureThumbnail to any new or existing <grid>. For more information about grids, please refer to our <type> element documentation.

 


highstage_footer