extends: sections/something not working correctly ?
ivandaum opened this issue · 2 comments
ivandaum commented
Hello everyone,
New to kirby here, I'm trying to extends a "news" section blueprint. The interface works, but instead of showing the "new Post" modal, it show a list of my site's pages.
So here's my agencies.yml
sections:
main:
type: fields
fields:
agencies:
type: builder
columns: 2
max: 2
label: Agencies
fieldsets:
agency:
name: Agency
fields:
posts:
extends: sections/news
And the sections/news
type: pages
headline: Post
parent: kirby.page('agencies')
template: new
image:
query: page.images.template("cover").first
ratio: 3/2
cover: true
My sections/news
is working on site.yml
thought.
Am I missing something here ?
ivandaum commented
I manage to get the right posts by adding a query to ping directly at the parent page (I still can't create on the fly posts from this interface):
posts:
extends: sections/news
query: site.find('agencies').children
TimOetting commented
Closing this issue because this plugin will no longer be maintained, as its main functionality can be replaced by Kirby's built-in Blocks Field and Layout Field.