ZenphotoCMS Forum
Flickerd theme: customizing the photo stream - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Flickerd theme: customizing the photo stream (/thread-10347.html)



Flickerd theme: customizing the photo stream - busternutley - 30-08-2012

I'm hoping a PHP guru can offer some help in customizing the Flickr-style photo stream coded in the Flickerd Theme. It is beautifully built to display images based off the 'thumbnails-per-page' set in the admin. I was wondering if there is a way to override this on the homepage only, i.e., display only 3 thumbnails.
I'm thinking the best way would be to use a line like:
getCurrentPage() == '1';
return $num_per_page( '3' );
I don't know how to fully write this statement using the correct syntax.
Any help is much appreciated. Thank you.




Flickerd theme: customizing the photo stream - sbillard - 30-08-2012

the setOption() has a varient for setting the option in a transitory fashon, so use that to set the images per page temporarily on the homepage.

However, note that you will have problem if you really mean "only on page 1 of the index page". All the pagination and breadcrumbs presume that the number of images on a page is uniform.