Open Greenheart opened 1 year ago
The raw content of the following could be parsed and automatically added to the content via a script. Split on newlines, separators and contributor names. Generate unique ids for contributors, save to files.
Then add the ids of contributors to the relevant tools. Find the tools by using the tool.link
(or even better the tool.slug
at the end)
Format:
tool.link
;tool.contributors
// NOTE: This only includes tools that had any contributors listed in the publication
const rawToolContributorsData = `
mindfulness-practices-14122oi;Lene Søvold, Christine Wamsler, Jamie Bristow
act-acceptance-and-commitment-therapytraining-ml32209;Fredrik Livheim
meet-yourself-at-90-pg124i2;Fredrik Livheim
personal-growth-through-a-polarity-lens-a4324v9;Barry Johnson
nature-quest-sl72413;Alina Stöver, Kristian Stålne
listening-to-pause-4w1249u;Vivianna Rodriguez Carreon
imagination-activism-and-the-symbiosis-meditation-86324pm;Phoebe Tickell
nonviolent-communication-03524df;Alina Stöver, Kristian Stålne
methods-for-scaffolding-collaboration-on-complex-issues-ah724my;Thomas Jordan
training-in-intercultural-competence-gk1240c;Thomas Jordan
psychological-safety-tx324p1;Kristofer Vernmark
the-shield-1w524fl;Stefan Dahlberg
personal-agency-and-personal-initiative-trainings-rm724cm;Anita Shankar
arts-creativity-and-imagination-36924it;Jessica Bockler
theory-u-for-group-work-and-prototyping-94b24hs;Vivianna Rodriguez Carreon,Jessica Bockler
woop-p1d24vk;Stefan Söderfjäll
`
Steps for content updates:
1) Copy the names from
Contributors: X, Y and Z
at the end of tool descriptions, and enter each name as an entry to the Contributors collection.2) Then add an relation widget to the tools fields CMS config.
3) Finally, go to the tool and link the relevant contributors. Ideally in the same order as they were before.
This will also need updates to the
tools
build pipeline to save contributors. It will also need updates to theTool
type to include contributors.Also update the page for specific tools, to display a section for contributors just like in the stories. And fetch the data from the endpoint.