Paginate through subalbums on page.php

I have a part of my site called 'Archive', which is a page that displays the subalbums of an 'Archive' album. This is my loop:

`
<?php set_context(ZP_INDEX); ?> <?php set_context(ZP_ZENPAGE_PAGE); ?>
`
What's the best way to paginate between pages of these subalbums?

Also, can I set the number of subalbums to display on this page independently of the theme album/image settings?

Thanks

Comments

  • acrylian Administrator, Developer
    Why don't you just use the normal album page for that? Then you don't need to worry about pagination as that all is already there.

    If you need different layouts for certain albums look at the multiple_layouts plugin.
  • Good point. Could have saved myself some time there...

    But can you override the number of subalbums to display per page?
  • acrylian Administrator, Developer
    You can override most options and so also the album per page one using:
    http://www.zenphoto.org/documentation/functions/_functions-basic.php.html#functionsetOption
    Look at the database about the actual option name or with the (normally now deleted) setup scripts' `setup-option-defaults.php`
Sign In or Register to comment.