getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
355 stars 222 forks source link

Check/display new or existing files/medias in page #2410

Open bonnebulle opened 1 month ago

bonnebulle commented 1 month ago

Hello everybody Am working with the grav-plugin-admin web interface but some time am using the "folder way" to edit / add contents and so for images / medias ! For example I can drag-n-drop file directly into pages/test_page/image_1.jpg

But files I add ( in the folder/manual or admin way ) dont appears into the admin/edit page ! :cry:

The filepicker show me them, cool ... but, it would be much more easier to show the new added files directly after/in/under the media field ("media" in blueprint)

( like when I upload some ) ( but for already existing ones ) image

My blueprint :

            media_files:
              type: file
              label: Médias
              multiple: true
              destination: 'self@'
              random_name: false
              avoid_overwriting: false
              limit: 10
              accept:
                - image/*

Some links I follow ( much more about filepicker / pagemediaselect )


So my question is, for now : How do the admin-plugin is "searching"/"scanning" for new media files ? What it the task trigger ? Can I force this process to start ?

I follow this question : task.addmedia https://discourse.getgrav.org/t/issues-with-page-media-in-admin-task-addmedia/1311/6

Maybe using an other cron / routine task ?

Thanks