ZenphotoCMS Forum
Latest Images on Gallery Index ( How To ). - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Latest Images on Gallery Index ( How To ). (/thread-10780.html)

Pages: 1 2


Latest Images on Gallery Index ( How To ). - photoshopsp - 27-01-2013

Hello, anybody knows the code I have to use to show the latest images in the gallery index using zenpage theme as it's shown in other themes.

Best Regards.




Latest Images on Gallery Index ( How To ). - fretzl - 27-01-2013

Use the function printLatestImages() where you want your image(s) to show.
http://www.zenphoto.org/documentation/plugins/_zp-extensions---image_album_statistics.php.html#functionprintLatestImages




Latest Images on Gallery Index ( How To ). - photoshopsp - 27-01-2013

Many thanks.




Latest Images on Gallery Index ( How To ). - photoshopsp - 27-01-2013

I got it but the images are shown vertically, do you know how to show the images horizontally ?

This is the code I added:




Latest Images on Gallery Index ( How To ). - fretzl - 27-01-2013

Oh, and don't forget to enable the image_album_statistics plugin.




Latest Images on Gallery Index ( How To ). - photoshopsp - 27-01-2013

Many thanks fretzl, I had it enabled, my problem now is how to show the images horizontally ?




Latest Images on Gallery Index ( How To ). - fretzl - 27-01-2013

Try

printLatestImages(4,'',false,false,false,40,'',79,79,false,false,false);




Latest Images on Gallery Index ( How To ). - photoshopsp - 27-01-2013

Not working.

Could be my problem related with where I added the code ?.

I added it before -->

I can see like little dots before the images, maybe the format there is some kind of list, I don't know.

This is the link : http://photoshopsp.nixiweb.com




Latest Images on Gallery Index ( How To ). - fretzl - 27-01-2013

Ah, you mean show the images next to each other?

The output of the function is a div with a list.
You will have to use CSS to style the list to get rid of the dots and show the images next to each other.




Latest Images on Gallery Index ( How To ). - photoshopsp - 27-01-2013

Ok, I will look for the way to do it, maybe having a look to how it works on zpmobile theme.

Many thanks for your support.