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]
<?php $_zp_conf_vars['albums_per_page'] = 20; ?>
[/code]
and
[code]
<?php $_zp_conf_vars['images_per_page'] = 30; ?>
[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]
setOptionDefault('albums_per_page', 12); setOptionDefault('images_per_page', 12);
[/code]
Comments
I am using the latest version and with a theme I am working on. The setOption function worked out.