Naviga Writer
6.3.3
6.3.3
  • Naviga Writer
  • Release notes
    • 6.3.3
    • 6.3.2
    • 6.3.1
    • 6.2.1
    • 6.2.0
    • 6.1.2
    • 6.1.1
    • 6.1.0
    • 6.0.0
    • 5.3.0
  • Introduction
    • Authoring
    • Developing
    • Publishing
    • User stories and reference cases
  • User Guide
    • Writer User Guide
      • The Content Area and Tabs
        • Help menu
        • Language menu
        • Article name
        • Writing teasers
        • Content area
        • Information
        • Search and replace words
        • History Button
        • Save and publish flow
        • Tabs
          • Meta Tab
            • Author
            • Channels
          • Integrations Tab
          • Image and Article search Tab
        • Locked article
      • Text management
      • Writer Keyboard Shortcuts
      • Personal Writer template
      • Channels to control access
      • Images User Guide
      • Common questions when starting using Writer
  • Admin Guide
    • Configuration files
    • Configurations Guide
    • Configuration of Writer templates
    • Publish Flow
      • Default configuration definitions
      • Starting part of the configuration
      • Publish flow config details
      • Configuration of calendarLocale
      • Preconditions for roles in the publish flow
    • Generic properties for Objects
      • Generic properties configuration
    • Image Services
      • Photo uploader
      • Binary Service Light
      • ImEngine
      • Imgix
    • Available Plugins
      • Naviga developed plugins
        • Plugins in earlier versions of Writer
      • Third-party plugins
  • Developer guide
    • Writer plugin development
      • Quickstart
      • Plugin overview
      • Creating an content object plugin
      • Validation and hooks
      • Interacting with external resources
    • Writer Plugin Building Blocks
      • Package
      • Component
      • Node
      • Converter
      • Events
    • Writer plugin style guide
      • CSS Guidelines
      • CSS variables, colors and fonts
      • UI Components
    • Tutorials
      • Popover & text analysis
      • Search & replace
      • Concept interaction
    • Infomaker NewsML
      • Overview
      • Document relations and types
      • Extensions XSD
      • NewsItem
      • ConceptItem
      • PlanningItem
      • Examples
        • NewsItem - Text
        • NewsItem - Picture
        • NewsItem - PDF
        • ConceptItem - Author
        • ConceptItem - Category
        • ConceptItem - Channel
        • ConceptItem - Content Profile
        • ConceptItem - Event
        • ConceptItem - Organisation
        • ConceptItem - Person
        • ConceptItem - Place (point)](point)](point)](point)](point)](point)](point)](point)](point)](point)]
        • ConceptItem - Place (polygon)](polygon)](polygon)](polygon)](polygon)](polygon)](polygon)](polygon)]
        • ConceptItem - Section
        • ConceptItem - Story
        • ConceptItem - Topic
        • PlanningItem
    • Media Enrichment
      • Images
  • API Reference
    • Writer Api
      • Api
      • Article
      • Browser
      • Concept
      • ConceptService
      • Document
      • Events
      • NewsItem
      • Router
      • Ui
      • Upload
      • User
      • settings
    • UI Components
      • UIAvatar
      • UIButton
      • UIByline
      • UICheckbox
      • UIChip
      • UIDatePicker
      • UIDatetimeFieldEditor
      • UIDropdown
      • UIFieldEditor
      • UIIconButton
      • UIInlineImage
      • UIPagination
      • UISelect
      • UITimePicker
      • UIToggle
      • UITooltip
      • UIInputText
      • UITextarea
Powered by GitBook
On this page
  • Prerequisites
  • Using the NPWriterDevkit skeleton plugin
  • 1. Environment
  • 2. Clone and start the skeleton plugin
  • 3. A quick look on what we have
  • 4. Add the plugin to the
  • 5. Verify
  • Next… get creative!

Was this helpful?

  1. Developer guide
  2. Writer plugin development

Quickstart

PreviousWriter plugin developmentNextPlugin overview

Last updated 5 years ago

Was this helpful?

This quickstart guide will describes how to get started with developing plugins to the and how to test them in an available online.

The steps involved

  1. Identify an environment to use

  2. Install correct version of Node.js and a Git client

  3. Download and start the skeleton NPWriterDevKit.

  4. Open the in your browser

  5. Configure the to load your local plugin

Prerequisites

To use the you will currently need to use the latest version of Google Chrome. We recommend using Carbon, version 8.x, which is the current LTS version of Node.js when developing plugins for the .

Either directly or use a Node Version Manager .

You will need a Git client to get the starter Devkit. If you don't already have one you can download a .

Using the NPWriterDevkit skeleton plugin

The NPWriterDevKit is a ready made skeleton with everything you need to get started. This includes build steps and a local plugin server.

1. Environment

If you have a dev environment already setup by Infomaker you should use that environment. If you don't have an appropriate environment please .

2. Clone and start the skeleton plugin

Start with cloning the NPWriterDevKit project and remove the .git directory. Then start the local plugin server.

git clone https://github.com/Infomaker/NPWriterDevKit.git
cd NPWriterDevKit
rm -rf .git
npm install
npm run start

3. A quick look on what we have

Then, if you take a look in the file src/DevKitPackage.js, you can see that the plugin is named npwriterdevkit with a default id of se.infomaker.npwriterdevkit. These values should obviously be changed later. But are fine for now.

import './scss/index.scss'
import {DevKitComponent} from './DevKitComponent'

export default {
    name: 'npwriterdevkit',
    id: 'se.infomaker.npwriterdevkit',

    configure: function(config, pluginConfig) {
        // ...
    }
}

The url, name and id is what we need to add the plugin to a running .

4. Add the plugin to the

As mentioned above you should add the plugin to your environment, or a test environment appointed to you by Infomaker.

In this example we use a Tryout environment which is a standard which contains a core set of plugins. Articles created will be cleared at regular intervals.

Load in your browser. Press CMD+SHIFT+y or CTRL+SHIFT+y to open the configuration test tool.

Click the plus to add a new plugin to the plugin list. A new plugin with a random name and id has been added to the configuration.

Let's configure it with the above values. Start with switching the Enabled toggle, then fill in the fields for Id, Name and Plugin src url with the above values. When it looks like the image below press Apply.

The will then store a local copy of the updated configuration in your browsers local storage. The configuration only lives in your browser.

5. Verify

If everything has been done correctly you should now have your locally served NPWriterDevKit plugin loaded in the Tryout .

Next… get creative!

The plugin is now ready to use in a and you should be able to load it by going to in your browser.

Next up is to familiarize yourself with the , read our Tutorials and Writer Plugin Building Blocks, and making the plugin yours.

download Node.js
like NVM
Git client of your choice here
contact Infomaker
localhost:3000/index.js
API reference
Digital Writer splash image
Digital Writer splash image
Devkit plugin loaded