![]() |
|
Overriding ZP albums_per_page and images_per_page - 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: Overriding ZP albums_per_page and images_per_page (/thread-7924.html) |
Overriding ZP albums_per_page and images_per_page - marcov - 2010-12-06 Is there any way to override the ZP admin albums/images per page values in an individual theme? I am trying to override the number of album thumbs and image thumbs per page by using the following in my index.php and albums.php files, respectively using the following code at the top of my files: [code] [/code] [code] They seem to have no effect, I still get the number of thumbs as set in the ZP admin theme options. I also tried placing the same code in the themeoptions.php file, still no effect. Also tried to set the defaul options in the themeoptions.php ThemeOptions() function - it still does not work. [code] Overriding ZP albums_per_page and images_per_page - micheall - 2010-12-06 Which version of zenphoto are you using? Also which theme? Some themes (in older versions of zenphoto) use the normalizecolumns option at the beginning of the theme's index page. Overriding ZP albums_per_page and images_per_page - acrylian - 2010-12-06 setOptionDefault() is the wrong function, you should use setOption(). Note that it has a extra parameter to either set the value permanently or temporarily. You can do this with all options. See the documentation for that. Overriding ZP albums_per_page and images_per_page - marcov - 2010-12-06 I am using the normalizeColumns functions in the theme - is it no longer needed? I am using the latest version and with a theme I am working on. The setOption function worked out. Overriding ZP albums_per_page and images_per_page - acrylian - 2010-12-06 normalizeCOlumns is currently needed but will not be needed anymore with the coming 1.3.2. Overriding ZP albums_per_page and images_per_page - sbillard - 2010-12-06 Please note that breadcrumbs will not work unless the theme is consistent in its #per page settings. Practically this means that if you are setting it not permanant you need to do so in each and every page involved with breadcrumbs. |