Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

I want to display a red message "Private" on images as a thumbnail overlay (thumbnail pattern on file type images) when no permission sets are assigned.

Code Block
languagejson
{% if permissionSetIds.size == 0 %} 
  < font color = "#ff5576" > 
    Private 
  </ font > 
{% endif %}

Setup in Picturepark

  • Layer: Corporate Information

Field Value Access

permissionSetIds

...

  • I have to change the thumbnail pattern for ImageMetadata (File Types/FileMetadata/ImageMetadata) because these are then all images.

  • Thumbnail overlays are Display Pattern Thumbnails on File Types.

  • I have to check for the number of permissionSetIds assigned, which I can do by adding .size.

Steps

  1. Open File Type > ImageMetadata (File Types/FileMetadata/ImageMetadata)

  2. Update the Thumbnail Display Pattern

  3. Check for Permission Sets and add text with CSS font color red. 

Code Block
{% if permissionSetIds.size == 0 %} 
  < font color = "#ff5576" > 
    Private 
  </ font > 
{% endif %}

...