Download the PHP package christopherbolt/silverstripe-addressfinderfield without Composer
On this page you can find all versions of the php package christopherbolt/silverstripe-addressfinderfield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download christopherbolt/silverstripe-addressfinderfield
More information about christopherbolt/silverstripe-addressfinderfield
Files in christopherbolt/silverstripe-addressfinderfield
Package silverstripe-addressfinderfield
Short Description Save address information based on the AddressFinderNZ API into DataObject fields.
License
Homepage https://github.com/christopherbolt/silverstripe-addressfinderfield
Informations about the package silverstripe-addressfinderfield
DEVELOPMENT - SilverStripe AddressFinderNZ Field
A custom field for integrating the AddressFinderNZ API as both a backend and frontend field.
By default the field will pull the full address from the API and will save it into the database field 'Address'.
Alternatively you can specifiy multiple fields from the API to be saved to the database. You can do this by passing in the alternative database fields array as the 3rd variable of the field constructor. The key of the array is the database field and the value should match the meta data returned by the API. https://addressfinder.nz/api/nz/address/metadata
Requirements
This installer requires you have the following:
- Composer
Configuration
- Add your AddressFinderNZ API information to the config.yml:
Usage
-
Add the database fields to your page or object
- Add the field to your fieldset
Advanced Usage
-
Add the multiple database fields to your page or object
-
Specify multiple address fields to save to your object NOTE: The key of the array is the database field and the value should match the meta data returned by the API. https://addressfinder.nz/api/nz/address/metadata
- Add the field to your fieldset
Frontend Usage
- Add the address field but don't forget to specify the DataObject