"insert into" query to create albums. Can it be done?
andreste
Joined: 2006-06-02
Posts: 123 |
![]() |
hello, |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
you should use the Gallery API, not SQL statements. the G2 sql schema and the dependencies are not obvious. only by using the API you ensure that you don't corrupt the data integrity of your database. you can build a script with GalleryEmbed::init, GalleryCoreApi::createAlbum, GalleryEmbed::done. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
also consider: |
|
andreste
Joined: 2006-06-02
Posts: 123 |
![]() |
Thanks Valiant, I'll use the Add from server function. I thought it could be used for photos only, not whole directories, so I actually forgot about it altogether; until now! |
|