Hi
I have a list of appartments stored in a structured field.
To import that list to the structured field I use an excelfile.
For now I have to reload the frontend-page to run a function which checks if the excelfile is newer than then content file. if yes, then it updates the content file.
But in my opinion this is a not an elegant solution, I excpect more automatisation.
Is there a way to call the update function automatically when a new fileversion has been uploaded (by a ftp-client) or are there other possibility available by kirby?
Or is it better to excecute the check-function by a specific timeinterval?
If you upload this Excel-File via FTP, then Kirby doesn’t know anything about your file, and you would have to use a cron job that does the check at regular intervals.
The alternative would be to upload the file via the Panel, in which case you could use Kirby’s hooks, or via some script that then triggers the hook.
Because this way then users can update the list via the panel in a more convenient/userfriendly way. Uploading the list via excel file (ftp-client) is ment for inhouse purposes.
Yes, that would be possible. You could also use the Janitor plugin which provides a button that can do all sorts of custom jobs in addition to some built-in stuff.