Thumbnails in Galleria add on

Permalink
Hi all,

I need to have different thumbnails than the ones that are automatically generated on the Galleria addon. My client has an existing site and the use a zoomed in version of the image for the thumb. You can see the existing site herehttp://www.simonpure.co.uk/collections/cradle.html...

I want to be able to add a separate thumbnail image to the gallery.

Any ideas? I am not a skilled PHP dev :(

Cheers

Ben

bencox
 
jbx replied on at Permalink Reply
jbx
I believe the standard functionality in Galleria is to output your thumbnails in a list like so:
<li>
  <img src="myImage1.jpg" />
</li>
<li>
  <img src="myImage2.jpg" />
</li>
<li>
  <img src="myImage3.jpg" />
</li>
etc...


Each image is then scaled for the thumbnail view. However, if you change this to:
<li>
  <a href="myImage1.jpg"><img src="myThumb1.jpg" /></a>
</li>
<li>
  <a href="myImage2.jpg"><img src="myThumb2.jpg" /></a>
</li>
<li>
  <a href="myImage2.jpg"><img src="myThumb2.jpg" /></a>
</li>
etc...


then it should use the image src for your thumbnail and the a href for the main image.

This can be done in the view.php or the template you are using in the block. Have a go at updating the code, but if you get really stuck then shout back...

Jon
bencox replied on at Permalink Reply
bencox
Jon,

My main problem is that I need to be able to add the thumbnails to the gallery when I add the main images in.

So I need an additional file upload/chooser to do this. I then need to output the thumbs in the view.php file.

Hope this makes sense.

Cheers

Ben
jbx replied on at Permalink Reply
jbx
Ahh, sorry, I see what you mean.

This will require quite a big update to the package. Might be worth sending a message to Andy Millerhttp://www.concrete5.org/profile/-/5619/... who created the block and see if he would be interested in adding this on for you.

Jon
bencox replied on at Permalink Reply
bencox
I have sent him a PM on here and also emailed him via his site with no reply :(

I will try again.

Might post on the jobs board as well.

Cheers for the help.

Ben
openly replied on at Permalink Reply
openly
Hi,

We have done this for one of our clients, we create a thumbnail when the images are added to the page.

We created an album add-on that allows the user to add albums and album covers via the dashboard.

I am happy to share this code with you, it will probably not work exactly how you want it to but I dont think it would be much work to add the code to the Galleria Add-on.

I will post the Add-on here for you to check out and it it is not what you need I will speak to my developer about adding the code to the asmiller_gallery package.

I will try to get this done today.
bencox replied on at Permalink Reply
bencox
That would be great. I am starting to get some pressure from the client so do need to give him some reassurance.

Cheers