ZenphotoCMS Forum
Images per page:showing more than entered - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Images per page:showing more than entered (/thread-5396.html)



Images per page:showing more than entered - gwmbox - 2009-06-28

OK, yes I did a search and found an old post that was related (1 year ago) but the fix in that is not the same code that is on the version I am now using (the latest)

So anyway in the administrator under Standard Options is a setting for Images per page:, I set this to show the number of images but the site displays more than what I have entered here.

Why does it do this and what is the workaround please.

Cheers




Images per page:showing more than entered - sbillard - 2009-06-28

Well, this would depend on the theme you are using. Some themes for style reasons do not make use of that option. Also look at the functions guide under normalizeColumns.




Images per page:showing more than entered - gwmbox - 2009-06-28

Ok... but pardon my not understanding but reading that info in the guide made littel sense to me. I have had a look at the default theme to try and work out how it works but I am really not seeing how it works.

Is there a way to turn it off, and if so what does that do?

For me I have set the admin to display 'X' photos and they are sized to a certain size to fit 'Y' thumbs across/within a set div floated to the left that then wrap to make up 'Z' rows so I control how many they are displaying in my theme.

Cheers




Images per page:showing more than entered - sbillard - 2009-06-29

You still have not told us what theme you are using. If it is the default theme, then you would simply remove the call on the normalizeColumns function. But of course, if you are using the default theme, it is designed to display six images per column and fill out a full page of images before page breaking to another page.




Images per page:showing more than entered - gwmbox - 2009-06-29

Sorry my theme is custom designed by me, hence why I could not find that code. Finally found it in the default and will have a play with it now.

So if it is NOT in the theme does it default on?




Images per page:showing more than entered - gwmbox - 2009-06-29

Got it working - cheers




Images per page:showing more than entered - sbillard - 2009-06-29

If it is not in the theme, it is not doing anything so something else must be causing your problem. Seems that must have been the case.