Customizing Page Number Display Customizing Page Number Display
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Customizing Page Number Display

Started by Beyond_Doubt, May 06, 2006, 12:41:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Beyond_Doubt

Hi,

I have tried a number of different edits to try to get the Page numbers that normally appear at the bottom right of the page (over from 'X albums on X pages) to also be shown in the upper right (over from Home > category) but to no success.

Could someone please enlighten me on what part of the above code (presumable the <--Begin Tabs--> section) has to be copied to where to achieve this.


Thanks in advance :)

edit [by Paver]: This was originally posted in response to this solved thread and refers to the code there.

Paver

That's a bit difficult.  You're asking about two different elements.  The page tabs on the lower right of each category are part of $template_album_list and theme_display_album_list().  The "Home > Category" link is in $template_breadcrumb and theme_display_breadcrumb().  You'd have to render the tabs in the breadcrumb function which would be a little difficult because you need to know the current page, the total pages, and so on which is currently not passed to the breadcrumb function.

My guess is the best way to do this is through a plugin that handles the passing of this data.

A theme-only way to do something similar would be to move the page number tabs to the top of $template_album_list and evaluate it appropriately in theme_display_album_list().  In other words, just move the tabs within the same table.  Or you might be able to disable the breadcrumb and then recreate the breadcrumb in theme_display_album_list() so it's actually part of the same function even though you could put it into a separate table which makes it look like it is now but with the data in one place.