• Resolved jbennett4072

    (@jbennett4072)


    I am trying to import each of the points for each of the houses from the JSON file below. I have tried, but either the basenode being blank or the fields having spaces in them is causing me serious problems.

    How can I simply import the points for Wedgwood for example?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author berkux

    (@berkux)

    Hi, try this:

    [jsoncontentimporter url="https://moorside-high-school.uk.arbor.sc/data-export/export/id/65/h/44560d77ffd9ec17/format/json/v/2/"]houses: {houses}, points:{points}
    [/jsoncontentimporter]

    Bernhard

    Thread Starter jbennett4072

    (@jbennett4072)

    Thanks for the response.

    Though this imports all the entries – not just a specific one. However, I have managed to resolve my problem – seems the free version, at least, will not process fieldnames which have spaces {house name} nor {“house name”}, nor quite a few other variations I tried would work. In the end, on Monday, I had the JSON file generated with variable compliant names. Instantly solved my problem.

    Was about to write JS and some PHP to process the JSON – and resolve the CORS issues… the plugin saved a bit of extra work so thanks for saving me the time and effort.

    Plugin Author berkux

    (@berkux)

    HI,
    glad to read that you found a solution.
    I checked the “fieldnames which have spaces” with
    https://test.json-content-importer.com/extra/json/moor.json having such fields.

    [jsoncontentimporter url="https://test.json-content-importer.com/extra/json/moor.json"]houses: {h ouses}, points:{p oints}
    [/jsoncontentimporter]

    This works: https://test.json-content-importer.com/moorside-high/

    Bernhard

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Import to display single record’ is closed to new replies.