Skip to content
SilverStripe module for adding a NZBN lookup field to a form.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_config
client Initial commit Nov 4, 2018
docs/en Initial commit Nov 4, 2018
src
templates/Somar/NZBN/Model
.editorconfig Initial commit Nov 4, 2018
.gitignore Initial commit Nov 4, 2018
.nvmrc
LICENSE
README.md
_config.php
composer.json Updates vendor name in composer Feb 26, 2019
package.json
webpack.mix.js

README.md

SilverStripe NZBN

SilverStripe module for adding a NZBN lookup field to a form.

Requirements

For a CMS user to add the NZBN lookup field, you need to have SilverStripe User Forms module installed.

Features

  • A developer can add a lookup field to a custom form
  • A site administrator can add a lookup field to a User Defined Form
  • The lookup field can pre-populate any field that is available through the NZBN API
  • Can pre-populate Text or Dropdown fields

Installation

$ composer require somar/silverstripe-nzbn

Configuration

mysite/_config/nzbn.yml

Somar\NZBN\Model\LookupField:
  button_text: 'Search'

Somar\NZBN\Service\LookupService:
  # url: 'https://sandbox.api.business.govt.nz/services/v3/nzbn'
  access_token: 'YOUR ACCESS TOKEN'

NZBN API Access

Follow the steps listed here on api.business.govt.nz to gain access to the NZBN API.

Documentation

You can’t perform that action at this time.