I am looking for a way to have a central place where i can see all uploaded files in one place in the kirby panel. My idea would be to have both sides covered:
- Uploading a file to a specific page moves it to the central asset folder but also saving a backlink on the asset. This way i could identify on which pages an asset is used.
- Uploading a file to the central media gallery would make it available on all pages, therefore one uploaded image could be used multiple times without the need to upload it again on another page.
Any suggestions how to solve this or is there maybe a solution out there somewhere in the kirby sphere?
create a new page blueprint for your media pool and add a files section to its blueprint.
with all other page blueprint where you need that just use both the “upload” and the “query” option of the files field to achieve what you discribed.
page with file from media pool
gallery:
type: files
uploads:
parent: site.find('media')
query: site.find('media').images
Thanks, worked.
I created a new blueprint called “medialibrary” that lists all media files and changed the fields in other blueprints to upload to my page based on blueprint “medialibrary”:
logo:
label:
de: Bild
en: Image
type: files
max: 1
multiple: false
query: site.find('my-media-library').images
uploads:
parent: site.find('my-media-library')
template: image
Any idea how to list the backlinks on an asset?
When i open the asset via Panel i would like to see a list of all pages, where this certain asset is used.