Skip to content

FileLink

Using "fileLink", a file can be linked to the record. The file must be retrieved via a URL. The deposited files can also be downloaded or shown on the records list item.

"root": {
    "fileLink": {
        "url": "insight/document/insight/${identifier}",
        "fileName": "${filename}",
        "download": true,
        "showInList": true,
        "existsAttribute": "identifier"
    }
}
  • "url": to retrieve the file.
  • "fileName": to store the file with a correct filename. This property is optional and only must be set if the url does not contain a file name with extension.
  • "download": Boolean, to download the files when the common download is performed. (Download configuration) The max file count per config is 100 files. The defalut value can be overridden in the Client-Configuration.
  • "showInList": Optional value which if set to true will show the file in the list and search results. If not set file is not shown.
  • "existsAttribute": Optional attribute which defines if the image exists and is therefore shown on the list. If not set file is always shown.

List Preview

If showInList is set to true the image is shown in the root list, child list and search results. The existsAttribute can be used to define an attribute which defines if the image is shown. If the value of the attribute is undefined, null, 0 or an empty string the image is not shown.

Style

To change the default style of the image you can use the following classes:

  • insight-list-item-with-image on the list item when it has an image. This class is set also when the existsAttribute returns false.
  • insight-list-item-image-placeholder on the placeholder image which is shown while the image is loading or no image exists.
  • insight-list-item-image on the loaded image AND the placeholder for positioning