is it possible to make every used file globally available in the panel? Just like in Wordpress or Shopware.
Currently i use the following as a query for the files in my blueprints, but obviously this only returns the files i have already used in this specific context.
query: page.images
Also the following, does obviously only return the files i used in the site.yml:
So i decided to create a tab in the site.yml which acts like datamanager to have e.g a overview of all images, and maybe have the possibility to swap them or download it.
I tried to achive it like that, which is obviously not working, but is smth like this even possible?
Is that a files section or a field? I guess a field because of the default. But defaults don’t work in site.yml because defaults are only considered when a new page is created.
I wonder if it wouldn’t make sense for your use case to put all files into a dedicated central files folder and query from there in all pages.
so i could define a folder and use the ‘uploads:’ property to store the uploaded files there and after that i should call them in a files field.
I didnt really find any documentation to create smth like this and didnt find much about how to tweak the ‘uploads:’ property to reffer to a custom folder. Do you have some tips about the syntax for this?
Hi, i still didn’t find a good solution for creating the behavior i described in my last reply, is there any instruction online to create something similar to this?
As I wrote above, create a new folder inside the content folder (e.g. files or whatever). In your files fields, set the query to query the files from that page. Same for the uploads destination: Files | Kirby CMS
If you don’t want a separate folder, you can also store all files directly in the content folder next to site.txt. That makes all images belong to the $site object.
I see, this works fine for fields, but i want to create a list of files, which i have to do with the section ‘files’ i guess. But i didn’t found out, how to create a query for the section, because the property doesn’t exist. I tried it with parent, but didn’t found out, how to use this to create a similar query.