somardesignstudios/silverstripe-nzbn

Silvertripe module for adding a NZBN lookup field.

Installs: 678

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.0.0 2018-11-04 20:35 UTC

This package is auto-updated.

Last update: 2022-06-26 08:09:48 UTC


README

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