Display Thumbnail Infos
The present article demonstrates how it is possible to display these details on an image's thumbnail:
- Original filename
- Custom label
Implementation of Apex Class
The code snippet below shows the implementation of the Apex Class used to display thumbnail details.
||Boolean||Display tags applied on image in thumbnail.|
|thumbnail_filename||Boolean||Display image's original filename in thumbnail.|
|thumbnail_date||String||Display the date on which the image was uploaded in a specified format. For example: 'd MMM YY' yields
More information about date formats can be found here.
|custom_label||String||This parameter allows the display of a custom label. The value of the custom label should be stored in a Salesforce field on the sObject SharinPixImage__c. The Salesforce field API name should then be used as the value for the parameter custom_label, for example:
Implementation of Visualforce Page
The code snippet below shows the implementation of the Visualforce Page used in this demo.
How it appears
The screenshot below shows how the filename and date are displayed on the thumbnail of an image.
SharinPix also provides download parameters that can be used to personalize the download filenames. For more information about these parameters and how to configure them in a custom search, refer to the following article: