fraga Posted May 16, 2019 Share Posted May 16, 2019 Hi, currently working on my first module. I want to split large images into smaller tiles and display those tiles via a Js-Map like Leaflet. I already finished up all the main parts. I added an image action which takes the image name and creates a corresponding folder in which all the tiles are stored. Currently the deletion of the folder is handled with just another image action. I would want to automatically delete the folder and the tiles when the main image is deleted from the post. How could I achieve that? (If you want to take a look the source-code can be found here: https://github.com/tri-fraga/ImageTiler/blob/master/ImageTiler.module Would love some feedback ? Link to comment Share on other sites More sharing options...
elabx Posted May 16, 2019 Share Posted May 16, 2019 Maybe here?? https://github.com/processwire/processwire/blob/master/wire/core/Pagefiles.php#L409 2 Link to comment Share on other sites More sharing options...
fraga Posted May 17, 2019 Author Share Posted May 17, 2019 Perfect, many thanks. I was only looking at Pageimages. Is there any reason why the API Docu is only dispaying specific hooks, or none at all? (e.g. https://processwire.com/api/ref/pagefiles/) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now