I have been using Plogger for a year now and have had a very positive experience overall.
I'm creating a new template for my site and I want to list links to the collections on every page. I placed the following code in the footer template. It works great on the index page, but on the collection and album pages it says "No collections yet." I know this is because I'm not on the collections page, but is there a workaround? Thanks!
<input type="hidden" name="dl_type" value="collections" /> <?php if (plogger_has_collections()) : ?> <?php while(plogger_has_collections()) : ?> <?php plogger_load_collection(); // set variables for the collection $desc = plogger_get_collection_description(); $num_albums = plogger_collection_album_count(); ?> <div class="collection"> <a href="<?php echo plogger_get_collection_url(); ?>"> <?php // generate XHTML with thumbnail and link to album view ?> <h2><?php echo plogger_get_collection_name(); ?></h2></a> </div> <?php endwhile; ?> <?php else : ?> <p> No collections yet </p> <?php endif; ?>