Integrate with Newsroom Planner

Newsroom Planner uses other plugins functionality to complete some of its tasks.

For example NRP relying on Naviga Photos to handle searching for images and handle images metadata.

Newsroom Planner uses Dashboard portals to render other plugins components in its own context.

Thanks to Dashboard mappings you can replace Naviga Photos with your own image service portal and integrate your plugin into Newsroom Planner

What kind of portals does Newsroom Planner use?

Newsroom Planner uses 4 different portals in order to search for images and link them or display images as a gallery or upload images.

Portal

Description

ImageSearch

Search for images and link them to an Assignment.

ImageGallery

Display Assignment's images.

ImageMetadata

Change Assignment's images metadata.

ImageUpload

Upload Images, and link them to an Assignment.

ImageSearch portal

This portal used to search for images and link the selected images to the active assignment.

Where is it rendered?

In My assignment view:

In assignment detail view:

Props:

Name

Type

Description

onLink

Function

A callback function expected to be called with array of image's uuid, filename.

localizations

Object

A localizations object contains localized strings.

editMode

Boolean

A flag to tell the portal that NRP in an edit mode or not.

Newsroom Planner doesn't call any methods from ImageSearch portal

Example:

Localizations

Supports English & Swedish

How Newsroom Planner render ImageSearch

ImageGallery portal

This portal used to display the active assignment's images.

Where is it rendered?

In My assignment view:

In assignment detail view:

Props:

Name

Type

Description

onSave

Function

A callback function expected to be called if the portal made any changes to the mages.

onCancel

Function

A callback function expected to be called if the portal made any changes to the images.

confirm

Function

A confirm helper method utilise Application Confirm.

closeConfirm

Function

A callback helper function to close the confirm dialog if it's triggered.

onSelection

Function

A callback function expected to be called with all the images and a boolean for the selected images. Used in My Assignment view more info below

images

Array

An array of the Assignment images.

editMode

Boolean

A boolean to tell the portal that NRP in an edit mode or not.

managePhotos

Boolean

A boolean to tell the portal if it can handle images metadata or not.

fullWidth

Boolean

A boolean to tell the portal if it's rendered within My Assignment view or Assignment Detail view more info below

localizations

Object

A localizations object contains localized strings.

Example:

Localizations

Supports English & Swedish

Functions should be accessible from NRP provided by ImageGallery portal

  • updateImages

    • A function will give the updated images from the Assignment.

  • selectAll

    • A function to handle selecting all images.

  • deselectAll

    • A function to handle deselect all images.

How NRP render ImageGallery

ImageUpload portal

This portal used to upload images, and provide the uploaded images to be linked to the active assignment.

Where is it rendered?

In My assignment view:

Props

Name

Type

Description

onDone

Function

A callback function expected to be called with images array when the images has been uploaded.

onUpload

Function

A callback function expected to be called when the portal starts uploading images.

onCancel

Function

A callback function expected to be called when the user cancel uploading images.

confirm

Function

A confirm helper method utilise Application Confirm.

closeConfirm

Function

A callback helper function to close the confirm dialog if it's triggered.

Example

Functions should be accessible from NRP provided by ImageUpload portal

  • cancel

    • A function will be called when the ImageUpload portal is unmounted to clean up onGoing processes for example.

How NRP render ImageUpload

ImageMetadata portal

This portal used to change images metadata

Where is it rendered?

In Assignment detail view:

Props

Name

Type

Description

images

Array

An array of the selected images to change metadata on them.

onSave

Function

A callback function expected to be called when the user done with updating metadata for the images.

onCancel

Function

A callback function expected to be called when the user cancel updating images metadata.

confirm

Function

A confirm helper method utilise Application Confirm.

closeConfirm

Function

A callback helper function to close the confirm dialog if it's triggered.

Example

Functions should be accessible from NRP provided by ImageMetadata portal

  • cancel

    • A function will be called when the ImageMetadata portal is unmounted to clean up onGoing processes for example.

How NRP render ImageMetadata

Was this helpful?