Hello
I wanted to create a script which uploads images to Phoca Gallery from a remote source.
I am able to fetch the remote data with a CLI script or a system plugin and wanted to add/modify the images. Should I do it directly to the database or is there some kint of API which I could use to add these items?
Do you have maybe an example script how should I add an image via a frontend system plugin? I wanted to run in by cron
Upload images to Phoca Gallery progmatically
-
- Phoca Enthusiast
- Posts: 50
- Joined: 14 Nov 2022, 12:04
- Jan
- Phoca Hero
- Posts: 48343
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Upload images to Phoca Gallery progmatically
Hi, there is no API for this. In Phoca Gallery, there is Multiple Add funciton which allows you add complete gallery to website (images become be images, folders become categories and subfolders become subcategories). This allows you to build complex gallery fast.
Jan
Jan
If you find Phoca extensions useful, please support the project