I have been trying to figure this one out but to no avail. I want to pass two parameters in the RecentImagesGallery function. Example on a template page I would call $RecentImagesGallery(12,team-gallery).
I continue to get SQL syntax errors in DEV mode. I am running SS2.3.3, and have tried altering things in the class ImageGallerySiteTree to track the issue. No luck.
Here is the error output from DEV:
#########################
[User Error] Couldn't run query: SELECT `ImageGalleryItem`.*, `ImageGalleryItem`.ID, if(`ImageGalleryItem`.ClassName,`ImageGalleryItem`.ClassName,'ImageGalleryItem') AS RecordClassName FROM `ImageGalleryItem` WHERE (ImageGalleryPageID = ) ORDER BY Created DESC LIMIT 12 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY Created DESC LIMIT 12' at line 1
#########################
Any assitiance would be greatly appreciated.