Functions/total collections

total_collections returns the total number of collections in your archive. Only collections visible to the current user will be included. For a visitor to the site, only public collections will be included.

Usage

<?php echo total_collections(); ?>

Examples

If you had 14 public collections in your archive, you could use this code in your theme's index.php file:

<p>My Omeka site has <?php echo total_collections(); ?> collections.</p>

To generate this:

<p>My Omeka site has 14 collections.</p>