I'm modifying the look of my Photo Album, and I'd like the pager to appear both at the top and bottom of the page in album view. I cannot seem to affect the presence or location of the pager in the photos_albumview.tpl file, and think that's not where it lives.

Can someone shortcircuit my search?

Michael

Comments

nathaniel’s picture

Assigned: Unassigned » nathaniel
Category: Support request » Bug report
Status: Active » Needs work

This looks like a bug.

It looks like it is in photos_albumview.tpl.php at the bottom.

<?php if (isset($album['pager'])): ?>
  <?php print theme_pager($album['pager']); ?>
<?php endif; ?>

But, that code isn't doing anything.

You can use:

<?php print theme('pager'); ?>

In that same file.

The pager at the bottom is hard coded in the inc/photos.album.inc file function photos_album_page.

Make sure to clear cache after modifying tpl.php files.
admin/config/development/performance

cayenne’s picture

Thanks! That did it.

  • Nathaniel committed 7ad564a on 7.x-3.x
    Issue #2361259 by Nathaniel: fix pager code in album template file...
nathaniel’s picture

Status: Needs work » Fixed

  • Nathaniel committed 5679145 on 7.x-3.x
    Issue #2361259 by Nathaniel: remove duplicate pager on user images page.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.