Create CSV product listing


I have a shop website, running on Kirby. I need to create a CSV of the products in the shop, to be read by Facebook to create a product catalogue there. I already have a product collection. What is the best way of creating a CSV from this and having it accessible from a URL, e.g.

Thanks for any thoughts


PHP has a function called fputcsv() that you can use to write an array to a .csv file. You can use a route to make this file available via URL.

Thank you, that was just the steer I needed. That combined with a Kirby route was just the job :+1: