Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added Chorus docs. Removed use of the acronym "IMS" as appropriate.

...

The Third Light Browser is a tool to help integrate Third Light IMS with your CMS or web management application. It enables web developers and integrators to place a "Fetch Image From IMSThird Light" button into a CMS, mailing list manager or other web tool. Using the button, a user working in your CMS can select a file from your Intelligent Media Server Third Light and embed a URL into the web or mail page they are editing so that the file will play or display when the page is opened – without the user having to exit the CMS. As well as embedding published files, you can also edit and crop them to suit the purpose, before embedding the link.

Tip

The Third Light Browser is available from IMS v6.0.18 onwards. It is included with IMS Premium and IMS Enterprise, or can be added as a module to IMS Standard (please ask [email protected])all Chorus sites.

Example usage

...

To insert the Third Light browser into another site, you can use the following example code:

...

The cropChosen event has associated details of the file selected. The callback function is passed an object containing keys as follows:

Key

Description

id

The IMS File Third Light reference of the selected image

originalWidth

The width in pixels of the selected image

originalHeight

The height in pixels of the selected image

fileRevision

The version number of the selected image

cropDefinition

A hash of details describing the selected crop area

cropClass

The key of the crop class selected (as provided to options.cropClasses)

urlDetails

A hash containing details of the URL to the selected file (only present when provideSFFUrl:true was included in the launch options)

metadata

A hash of metadata for the selected file

...

Key

Description

url

IMS URL to browse - defaults to the same as that passed to the IMS.IframeAppOverlay

theme

A string referring to the theme to load. Currently supported options are "light", "dark" and "blue"

cropClasses

An array of hashes defining the output formats to present

metadata

Boolean, whether to enable the display of metadata in the CMS browser (Off by default)

metadataFields

An optional array of metadata fields to include; defaults to all

metadataLayout

An optional array of hashes, describing an order and content of metadata panels to display. Defaults to the IMS configuration

revisions

Boolean, whether to display revisions other than the currently active one. (Off by default)

provideSFFUrl

Boolean, whether to return a URL to the requested output file. Requires that Secure File Fetch be enabled in the IMS site, and that the user has permission to publish files. (Off by default)

closeOnExport

Boolean, whether to close the widget when the selection is made. Otherwise a final page is displayed containing pertinent details. (On be default)

sessionId

An optional session ID to use (rather than prompting the user to log in, or using their existing IMS session). This is useful in conjunction with server-side API-key session set up to allow auto-login

hideCloseButton

Boolean, whether to suppress the 'Close' button on the widget. (Off by default)

showUnsuitableThumbnails
Boolean, denoting whether to show thumbnails that are unsuitable for any of the available crop classes when browsing. (Off by default)
showUnsuitableCropClasses
Boolean, denoting whether to show unsuitable crop classes in the crop class drop-down when cropping an image. (Off by default)
cropSnapInteger denoting the closeness in relative pixels of a padded image to the crop border that will force a snapping of the image to that border. (30 by default, 0 will disable it)

...

When the metadata option is on, the CMS browser offers metadata to users. Without any further configuration, this displays the fields (and panels) configured in IMS (see Editing Metadata Fields for more information), restricted by user settings if the Multi-tenant Metadata feature is enabled.

...

Alternatively, you may specify the metadataLayout option. This takes an array of hashes, describing the panels and fields to display - overriding panel layouts from IMS. This is formatted as follows:

...