hi there! i created an json-export script follwing one of the tutorials and writing those to a data folder. how can i integrate/call that script whenever i save a dataset? where would i plug it into the kirby-flow? thanks for a hint!
What do you mean? A page?
thanks for the wuick answer! yes, for example i add/change content, the specific datafile is beeing written (in kirby own txt format) and i want to create/update my jsonfile-data for the whole site as some kind of “post-process” action. how/where can i hook this?
e.G.: i have 4 pages, i change 1 entry on 1 page, and afterwards all 4 pages/contents should be rendered into a single json-file. i already have the .php writing the json, but i’m not sure where to call it. currently i do it manually via browser-adress, but that’s not the handiest way
Kirby has hooks that are triggered upon certain action, e.g. page.update:after hook, etc.:
1 Like
thanks!