TakioTk
November 2, 2023, 11:05am
1
Hi, I just installed the embed plugin 1.08 to my Kirby CMS 3.9.7 and added the embed field to my blueprint. But it seems as if Kirby does’nt recognize the embed field?!? Same when I change the field type to text and use the field->toEmbed() method: nothing happens.
My PHP Version is 8.1.13.
embed:
label: Embed
type: embed
Do you try to use the fieldtype in your own plugin? Maybe it gets loaded before the embed-plugin so the fieldtype does not exist yet?
No, it’s just a regular installation
can you please post your whole Blueprint? I guess there is something wrong with your structure in it. Maybe you missed the fieldstype declaration before. I testet it in the kirby plainkit and it worked:
title: Site
sections:
embedContent:
label: EmbedContent
type: fields
fields:
embed:
label: Embed
type: embed
1 Like
title: Edition
icon: book
num: '{{ page.published.toDate("Ymd") }}'
status:
draft: Entwurf
listed: auf der Webseite publiziert
columns:
- width: 1/2
sections:
main:
type: fields
fields:
subtitle:
label: Untertitel
type: text
text:
label: Text
type: textarea
embed:
label: Embed
type: embed
spec:
type: fields
fields:
published:
label: Publiziert
type: date
width: 1/2
medium:
label: Medium
type: select
default: print
options:
print: Katalog
photo: Fotos
dvd: DVD
width: 1/2
# print
page_number:
label: Seitenzahl
type: text
width: 1/2
when:
medium: print
print:
label: Drucktechnik
type: text
width: 1/2
when:
medium: print
# dvd
color:
label: Farbe
type: text
when:
medium: dvd
length:
label: Filmlänge
type: text
width: 1/2
when:
medium: dvd
#photo
box:
label: Fotos, Maße und Verpackung
type: text
width: 1/2
when:
medium: photo
sold:
label: Auf Lager
type: toggle
text:
- ja
- nein
width: 1/2
price:
label: Preis
type: text
width: 1/2
link:
label: edCat Url
type: url
- width: 1/2
sections:
cover:
type: fields
fields:
cover:
label: Cover
type: files
layout: cards
size: tiny
max: 1
supp:
label: Beilagen
type: files
template: supp
layout: cards
size: tiny
- width: 1
sections:
images:
label: Seitenansichten, Bilder
type: files
template: image
layout: cards
size: small
when I change the fieldtype to ‘text’ I can see the textfield. So I think, that the field as field is recognized.
Sorry, I found the mistake. It was another plugin, I was developing but not yet ready. Now everything works fine,
Thank you for your help!