Hey i was wondering if anyone knew how to make the gallery link through to the non-resampled images? I've done all the resizing/cropping/adjusting locally. Resampled images look a bit grainy, and i don't really want to have to upload massive photos.
- « Previous 10 entries
- Next 10 entries »
417 Posts 77879 Views
Sure, just create your own ImageGalleryPage_album.ss in your mysite folder and customize it as you like.
<a id="ViewLink-$ID" rel="$RelAttr" class="$ClassAttr" title="$Caption" href="$ViewLink"><img src="$ThumbnailURL" alt="$Title"/></a>
You could change the href to "$Image.URL"
But I would start with GD::set_default_quality(100);
Thanks for your quick reply, I'm new to Silverstripe so still learning some stuff. Had already set the GD quality, cheers!
Ok so i've run in to another problem. We've got out own server with a hosting company, and on this the image gallery module works fine.
We're developing another site for a client that's on shared hosting, so the server config is a bit different. I also don't have ssh access for this server so it makes dev a bit trickier. I can install the module fine, but in the backend i get an error of the images not uploading. Initially i was getting these alerts (using the swfuploader in the backend): "An error occurred in the upload. Try again later." in a window.alert, and then "An error occurred in the upload. Try again later."
So i followed this fix: http://www.silverstripe.org/dataobjectmanager-module-forum/show/264716?showPost=264716 and no longer got the alerts.
BUT, now i'm getting a different problem. The upload completes, but there's no files created in the backend. Looking at the site via ftp shows that no folder named 'image_gallery' is even created in the assets/ folder. So all the images are just blank.
Had a look at the phpinfo on each of the sites (our server and the shared hosting server) and noticed that the upload_tmp_dir was set to /var/www/tmp on the shared hosting, and /chroot/apache/tmp on our server. The max file size and stuff is fine. Would this impact on how the script runs? I'm running out of ideas on this one...
Dit you (or anyone) ever get the Static Publisher to work for the ImageGallery pages? (as posted in this thread, 21 March 2009,
Please ignore this post. found out the site I'm referring to was using an older version of the imagegallery, that still had the Static Publisher issue. Sorry about that...
We use this extension and like it very much.
But sometimes (maybe once a month) we got error emails by users, as:
SELECT `ImageGalleryAlbum`.*, `ImageGalleryAlbum`.ID,
if(`ImageGalleryAlbum`.ClassName,`ImageGalleryAlbum`.ClassName,'ImageGalleryAlbum') AS RecordClassName FROM `ImageGalleryAlbum` WHERE (ImageGalleryPageID = 45 AND SortOrder < ) ORDER BY SortOrder DESC LIMIT 1 You have an error in your SQL syntax
you sere that the sortorder is not set in the statement "SortOrder < " !
this emergs from
# DataObject::get_one(ImageGalleryAlbum,ImageGalleryPageID = 45 AND SortOrder < ,,SortOrder DESC)
Line 337 of ImageGalleryPage.php
Line 347 of ImageGalleryPage.php
someone has an idea?