autogenerate collection item IDs

This commit is contained in:
2024-10-11 16:53:42 +02:00
parent 4e2bca263b
commit 08d3a9f867
4 changed files with 42 additions and 35 deletions

View File

@@ -13,7 +13,7 @@ export ACMS_CONTENT=$PWD/content
## Create a restaurant collection type
```console
acms collection insert restaurant/1.json <<'EOF'
acms collection add restaurant <<'EOF'
{
"name": "Biscotte Restaurant",
"description": "Welcome to Biscotte restaurant! Restaurant Biscotte offers a cuisine based on fresh, quality products, often local, organic when possible, and always produced by passionate producers."
@@ -24,7 +24,7 @@ EOF
## Create a category collection type
```console
acms collection insert category/1.json <<'EOF'
acms collection add category <<'EOF'
{
"name": "French Food",
"restaurant": "1.json"
@@ -33,7 +33,7 @@ EOF
```
```console
acms collection insert category/2.json <<'EOF'
acms collection add category <<'EOF'
{
"name": "Brunch",
"restaurant": "1.json"