I see that in Kirby 3 I can add fields directly to the panel using the site.yml blueprint. I want to build a very simple site where the user can only edit one page, so I’m wondering if it’s possible to put the fields on the dashboard (it’d be a simple image gallery) or if I have to create a section and reference that?
If it’s possible, how would I then loop the images, as there would be no parent to call.
In Kirby 2, the dashboard was not tied to any content in your content folder. The site.ymlblueprint then defined the form you saw in the Settings page.
Kirby 3 combines the former Settings page and the former dashboard into a unified experience. On the one hand, this start page when you open the Panel can contain fields the values of which are then stored in the site.txt file. Additionally, you can display everything that is contained in your content folder––an much more.
To structure this start page, you can use the new tab feature, so that you have fields to store general information about the site in one tab, display a sort of “sitemap” of your page (like in the Starterkit) in the first tab, from where people can access the different section of your site.
The possibilities here are pretty endless. For example, we have seen a dashboard that displayed progress metadata about the site, indicating what had already been finished and where information was missing in pages.
Thanks everyone and apologies for the late reply. The $site variable did work; it was what I tried first but perhaps I didn’t save properly before checking, and then went on to try other guesses like ‘panel’ and then wonder if it needed to be in its own directory. I think this could be really powerful, especially for plugins that want to be incorporated into a kind of ‘dashboard view’.
I’m sure we’re all going to be asking a few more questions over the next few weeks, but I’m looking forward to learning, it will all be worth it for a much improved product!