somardesignstudios / silverstripe-nzbn
Silvertripe module for adding a NZBN lookup field.
Installs: 728
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Type:silverstripe-vendormodule
Requires
Requires (Dev)
- phpunit/phpunit: ^5.7
- squizlabs/php_codesniffer: ^3.0
Suggests
- colymba/gridfield-bulk-editing-tools: Allows for bulk management of form submissions
- silverstripe/gridfieldqueuedexport: Export large submission as CSV through queued jobs in the background
This package is auto-updated.
Last update: 2023-09-26 10:51:41 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.