Closed bvdputte closed 6 years ago
i see. tags are also stored as yaml. my check if its a structures is messed up. will see what i can do. care to share the full blueprint? https://github.com/bnomei/kirby3-autoid/blob/master/classes/autoid.php#L194
Sure. It's basically the supplied article
blueprint from the starterkit, but with the addition of the autoid field:
title: Article
num: date
icon: 📖
columns:
- 2/3: content
- 1/3: meta, images
sections:
content:
type: fields
fields:
text:
label: Text
type: textarea
size: large
autoid:
type: hidden
meta:
type: fields
fields:
date:
label: Date
type: date
time: true
default: now
author:
label: Author
type: user
tags:
label: Tags
type: tags
options: query
query:
fetch: site.tags.toStructure.sortBy("name", "asc")
text: "{{ structureItem.name }}"
value: "{{ structureItem.value }}"
images:
extends: sections/images
please try again with https://github.com/bnomei/kirby3-autoid/releases/tag/v0.1.7
Fixed! 👍
😅
Bear with me as this is my first tryout with the autoid field! As a test I've tried adding an autoid to the blueprint of an
article
by adding this to thecontent
section:Now I'm getting following error when I'm trying to save an article:
Undefined offset: 9
at/site/plugins/kirby3-autoid/classes/AutoID.php:187
.I'm also noticing the
autoid
field is not getting popuplated, but thetags
field is being screwed up:FFR: the original field content was