silverstripe-australia / json-connector
A JSON connector for the external content module.
Package info
github.com/nyeholt/silverstripe-json-connector
Type:silverstripe-module
pkg:composer/silverstripe-australia/json-connector
1.4.1
2016-10-12 10:42 UTC
Requires
- flow/jsonpath: ~0.3.1
- guzzlehttp/guzzle: ~6.2.0
- silverstripe/external-content: ~1.1
- silverstripe/framework: ~3.1
- silverstripe/multivaluefield: ~2.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A JSON feed consumer for the external content module. Makes use of JSONPath for selecting the data to be included from the feed, and how to map those items to data for import.
Usage
- Create a new JSON content source
- Enter the feed URL
- Enter a JSONPath expression that represents the 'collection' of data
- Specify some property mappings, in particular ID and Title
For example, enter the following information
- Feed URL: https://www.reddit.com/.json
- JSONPath expression: $.data.children[:9].data
- Selectors:
- ID : $.id
- Title: $.title