/
Display Pattern: No Permission on Images

Display Pattern: No Permission on Images

Summary

 

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.

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

Field Value Access

permissionSetIds

  • will access the Permission Sets, so I can check for individual IDs. For example, if permissionSetIds is 123, then show "owner only" as a message in the display pattern

permissionSetIds.size

  • the number of Permission Sets added to the Content Item

Use Case

I want to display a red message "Private" as a thumbnail overlay when no permission sets are assigned. 

  • 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. 

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



Related content

Display Pattern: Show Permission Text on Thumbnail Overlay
Display Pattern: Show Permission Text on Thumbnail Overlay
More like this
Display Pattern: Show Message for Specific Roles
Display Pattern: Show Message for Specific Roles
More like this
Display Pattern Help
Display Pattern Help
More like this
Display Pattern Help
Display Pattern Help
More like this
Display Pattern Help
Display Pattern Help
More like this

FotoWare Switzerland AG - CH-5033 Buchs - Switzerland
https://picturepark.com - support@picturepark.com
© 2023 FotoWare Switzerland AG