Custom Previews

The Custom Previews plugin adds a special preview functionality to the asset context menu for its supported file extensions. The goal is to provide a better user experience for the file extensions where the standard JPG image shown by Celum is not suitable or not the desired behavior.

The label for the key of the menu item is customPreviews.menuTitle and can be customized via the {home}/appserver/lang/customMessages_xx.properties files.

Properties

To be configured in {home}/appserver/conf/custom.properties.

customPreviews.license

type: String, required: yes, default: -

The license key for the plugin (product: customPreviews), provided by brix.

customPreviews.allowedUserGroups

type: List of Long, required: no, default: - (visible for everybody)

If one or more user group ids are specified, then the plugin's menu entry is only visible for those user groups and super admins.

customPreviews.previewers

type: List of String, required: no, default: - (all previewers are available)

A list of the previewer beans for which the custom preview will be enabled.

Currently available: customPreviewsImagePreviewer, customPreviewsPdfPreviewer, customPreviewsOfficePreviewer.

customPreviews.imagePreviewer.extensions

type: List of String, required: no, default: gif

File extensions for which the image previewer is used. The specified extensions have to be a valid src for an img tag.

Previewers

ImagePreviewer

id: customPreviewsImagePreviewer, extensions: customPreviews.imagePreviewer.extensions

Shows the original file using an img tag.

PdfPreviewer

id: customPreviewsImagePreviewer, extensions: pdf

Shows the PDF file using an iframe, so the browser's PDF viewer will display it.

OfficePreviewer

id: customPreviewsImagePreviewer, extensions: doc, docx, xls, xlsx, ppt, pptx

Shows Microsoft Office documents via their free service view.officeapps.live.com. There is no need to install Microsoft Office but the previewed file will be uploaded to the external site.

Labels

To be configured in {home}/appserver/lang/customMessages_{language}.properties.

customPreviews.previewers

The label for the context menu item and the title of the preview window.

Release Notes

1.0.1

Initial Version