Yes, this part of documentation i’ve found. I develop a plugin to manage uploaded files, so the user can delete, rename, replace files. I know the file section can do this but we want a little bit more. Now i try to delete a file - doing this with a dropdown and call the route /filebrwoser/(:any)/delete. This triggers my action (code from the first post). I thought I could use the core code, so I don’t have to program the delete and dialog logic by myself but it didn’t work.
From the docs, I don’t think that’s possible, because you are trying to reuse something from the site area outside the site area. At least this reuse of Panel core code is only mentioned in the context of extending the site area.
OK. What is the solution? Build the dialogs for deleting and renaming yourself and also the logic? Is there no other way to delete and rename a file? This functions are available in the core, so i thought i could use them. The dialog page.changeStatus, which i built in for testing, worked perfectly, but none of the others did.
the main problem is that you are trying to call that load function of page.file.delete with only one parameter, while it expects two parameters: first the path where that file in your content structure is located and only second the filename.