Skip to content

Download ALL the Metadata Button

angelamhkim edited this page Nov 13, 2020 · 12 revisions

You may want to download all the metadata to be able to review it on Excel or another spreadsheet software. The platform has a useful API, for more information on this click here. Using the API, we've added a simple button which enables us to download a CSV of all the metadata at the bottom of the homepage.

To do this on your platform:

  1. Create a new file in the _includes/components folder called 'download-metadata.html'. Here is our example code.

Make sure to add your "Github Organization Name" and "Data Repo Name" in the link (https://[GITHUB ORGANISATION].github.io/[DATA REPO NAME]/meta/all.json) in line 11.

  1. Edit the _layouts/frontpage.html file to include this new button you created. See line 39 here. {% include components/download-all-data.html %}

Now, you should be able to see a green button at the bottom of the homepage!