silverstripe-australia / json-connector
A JSON connector for the external content module.
Installs: 3 683
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
- flow/jsonpath: ~0.3.1
- guzzlehttp/guzzle: ~6.2.0
- silverstripe/external-content: ~1.1
- silverstripe/framework: ~3.1
- silverstripe/multivaluefield: ~2.0
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