Export json with site path structure

Created on 30 May 2021, over 3 years ago
Updated 1 February 2022, almost 3 years ago

Problem/Motivation

It would be great if there was an option with the tome:export feature to export the json files into a directory and filename structure that match's the site's paths/directories for content.

Using the Umami demo site as an example, some of the exported recipe files would be:

/content/recipes/deep-mediterranean-quiche.json
/content/recipes/thai-green-curry.json
/content/recipes/vegan-chocolate-and-nut-brownies.json

For entities without path aliases, I would imagine the fallback would be the /node/###, /taxonomy/term/###, etc. internal paths.

I'm investigating using the tome:export feature with the Nuxt Content module to allow the exported json files to be the source content for a Nuxt.js SPA.

Maintaining the site structure for the files would greatly help this, and I think would generally make working with the export files easier.

✨ Feature request
Status

Closed: won't fix

Version

1.4

Component

Tome Sync

Created by

πŸ‡ΊπŸ‡ΈUnited States pcate

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024