8.0 - Opening an Article

Because of Naviga Writer 8.0's tighter integration with Naviga Dashboard it is no longer possible to open the writer in its own window. To open articles from a plugin an event must be triggered.

Navigating to an article url with the format https://[organisation].writer.saas-prod.infomaker.io/[article-uuid] will result in an error explaining that the writer is unable to connect to the Dashboard Application.

To solve this Dashboard now includes support for Standalone App support, which basically opens a single Dashboard Application in a Dashboard instance.

Trigger an event to open an article

To open an article in a new window, simply trigger an event in your writer plugin like this:

import {event, api} from 'writer'

api.events.trigger('plugin-id', event.DASHBOARD_OPEN_ARTICLE, {
    uuid: <article-uuid>
})

This will open the article in either a new Writer Application tab in the Dashboard, or a new browser tab, depending on the current dashboard context.

To force the article to open in a new browser tab, trigger the event with the property inNewWindow set to true:

import {event, api} from 'writer'

api.events.trigger('plugin-id', event.DASHBOARD_OPEN_ARTICLE, {
    uuid: <article-uuid>,
    inNewWindow: true
})