Skip to content

silverstripeltd/silverstripe-nzbn

 
 

Repository files navigation

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://api.business.govt.nz/sandbox/nzbn/v5'
  subscription_key: 'YOUR SUBSCRIPTION KEY'

NZBN API Access

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

Documentation

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 83.9%
  • JavaScript 12.8%
  • SCSS 2.5%
  • Scheme 0.8%